pub struct NoSourceMap;Expand description
This SourceMap implementation simply does nothing and returns None.
It can be useful to pass this struct to functions requiring a sourcemap, but you don’t care about sourcemapping.
Trait Implementations§
Source§impl SourceMap for NoSourceMap
impl SourceMap for NoSourceMap
Source§fn item(&self, _decl: &str) -> Option<&SourceMapEntry>
fn item(&self, _decl: &str) -> Option<&SourceMapEntry>
Get the module path and declaration name from a mangled name.
Source§fn display_name(&self, _path: &ModulePath) -> Option<&str>
fn display_name(&self, _path: &ModulePath) -> Option<&str>
Get a module display name.
Source§fn default_source(&self) -> Option<&str>
fn default_source(&self) -> Option<&str>
Get the default module contents.
Auto Trait Implementations§
impl Freeze for NoSourceMap
impl RefUnwindSafe for NoSourceMap
impl Send for NoSourceMap
impl Sync for NoSourceMap
impl Unpin for NoSourceMap
impl UnsafeUnpin for NoSourceMap
impl UnwindSafe for NoSourceMap
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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