pub struct RealFs {
base_dir: Option<PathBuf>,
}Fields§
§base_dir: Option<PathBuf>Implementations§
Trait Implementations§
Source§impl VirtualFileSystem for RealFs
impl VirtualFileSystem for RealFs
Source§fn contents(&self, url: &Url) -> Fallible<String>
fn contents(&self, url: &Url) -> Fallible<String>
Loads the contents of the given URL (or fail with a useful error).
Source§fn path_url(&self, path: &Path) -> Fallible<Url>
fn path_url(&self, path: &Path) -> Fallible<Url>
(Try to) convert a path on the local file system to a URL
Source§fn url_display(&self, url: &Url) -> String
fn url_display(&self, url: &Url) -> String
Return a string for the way we should display
url to the userAuto Trait Implementations§
impl Freeze for RealFs
impl RefUnwindSafe for RealFs
impl Send for RealFs
impl Sync for RealFs
impl Unpin for RealFs
impl UnsafeUnpin for RealFs
impl UnwindSafe for RealFs
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more