pub struct LibraryResolver {
pub search_paths: Vec<PathBuf>,
}Expand description
Resolves declared libraries to parsed LibraryDocuments.
Fields§
§search_paths: Vec<PathBuf>Optional-library search directories, checked in this order. Each may
contain <library-name>/lib.etdl. Never consulted for std.*.
Implementations§
Source§impl LibraryResolver
impl LibraryResolver
pub fn new() -> Self
pub fn with_search_path(self, path: impl Into<PathBuf>) -> Self
Sourcepub fn builtin_names() -> Vec<&'static str>
pub fn builtin_names() -> Vec<&'static str>
Names of every built-in standard library module.
Trait Implementations§
Source§impl Clone for LibraryResolver
impl Clone for LibraryResolver
Source§fn clone(&self) -> LibraryResolver
fn clone(&self) -> LibraryResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibraryResolver
impl Debug for LibraryResolver
Source§impl Default for LibraryResolver
impl Default for LibraryResolver
Source§fn default() -> LibraryResolver
fn default() -> LibraryResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LibraryResolver
impl RefUnwindSafe for LibraryResolver
impl Send for LibraryResolver
impl Sync for LibraryResolver
impl Unpin for LibraryResolver
impl UnsafeUnpin for LibraryResolver
impl UnwindSafe for LibraryResolver
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