pub struct BuiltinResolver { /* private fields */ }
Available on crate feature
loader
only.Expand description
The builtin module resolver
This resolver can also be used as the nested backing resolver in user-defined resolvers.
Implementations§
Source§impl BuiltinResolver
impl BuiltinResolver
Sourcepub fn add_module<P: Into<String>>(&mut self, path: P) -> &mut Self
pub fn add_module<P: Into<String>>(&mut self, path: P) -> &mut Self
Add builtin module
Sourcepub fn with_module<P: Into<String>>(self, path: P) -> Self
pub fn with_module<P: Into<String>>(self, path: P) -> Self
Add builtin module
Trait Implementations§
Source§impl Debug for BuiltinResolver
impl Debug for BuiltinResolver
Source§impl Default for BuiltinResolver
impl Default for BuiltinResolver
Source§fn default() -> BuiltinResolver
fn default() -> BuiltinResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuiltinResolver
impl RefUnwindSafe for BuiltinResolver
impl Send for BuiltinResolver
impl Sync for BuiltinResolver
impl Unpin for BuiltinResolver
impl UnwindSafe for BuiltinResolver
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> 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