pub struct Resolver { /* private fields */ }
Expand description
Resolver instances keep track of options.
Implementations§
Source§impl Resolver
impl Resolver
Sourcepub fn with_basedir(&self, basedir: PathBuf) -> Self
pub fn with_basedir(&self, basedir: PathBuf) -> Self
Create a new resolver with a different basedir.
Sourcepub fn with_extensions<T>(&self, extensions: T) -> Self
pub fn with_extensions<T>(&self, extensions: T) -> Self
Create a new resolver with a different set of extensions.
Sourcepub fn with_main_fields<T>(&self, main_fields: T) -> Self
pub fn with_main_fields<T>(&self, main_fields: T) -> Self
Create a new resolver with a different set of main fields.
Sourcepub fn preserve_symlinks(&self, preserve_symlinks: bool) -> Self
pub fn preserve_symlinks(&self, preserve_symlinks: bool) -> Self
Create a new resolver with a different symlink option.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resolver
impl RefUnwindSafe for Resolver
impl Send for Resolver
impl Sync for Resolver
impl Unpin for Resolver
impl UnwindSafe for Resolver
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