pub struct DummyFileResolver;Expand description
A stub implementation of FileResolver intended for testing.
Trait Implementations§
Source§impl FileResolver for DummyFileResolver
impl FileResolver for DummyFileResolver
Source§fn input(&self, _file: File) -> Input
fn input(&self, _file: File) -> Input
Returns the input contents associated with the file given.
Source§fn notebook_index(&self, _file: &UnifiedFile) -> Option<NotebookIndex>
fn notebook_index(&self, _file: &UnifiedFile) -> Option<NotebookIndex>
Returns the
NotebookIndex associated with the file given, if it’s a Jupyter notebook.Source§fn is_notebook(&self, _file: &UnifiedFile) -> bool
fn is_notebook(&self, _file: &UnifiedFile) -> bool
Returns whether the file given is a Jupyter notebook.
Source§fn current_directory(&self) -> &Path
fn current_directory(&self) -> &Path
Returns the current working directory.
Auto Trait Implementations§
impl Freeze for DummyFileResolver
impl RefUnwindSafe for DummyFileResolver
impl Send for DummyFileResolver
impl Sync for DummyFileResolver
impl Unpin for DummyFileResolver
impl UnsafeUnpin for DummyFileResolver
impl UnwindSafe for DummyFileResolver
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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