pub struct SingleFile { /* private fields */ }Expand description
World that contains a single file, ideal for testing
This world doesn’t support includes at all.
Implementations§
Source§impl SingleFile
impl SingleFile
pub fn from_source(source: impl Into<String>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SingleFile
impl !RefUnwindSafe for SingleFile
impl !Send for SingleFile
impl !Sync for SingleFile
impl Unpin for SingleFile
impl !UnwindSafe for SingleFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more