pub struct SearchPaths {
pub module_paths: Vec<Utf8PathBuf>,
pub interface_paths: Vec<Utf8PathBuf>,
pub library_paths: Vec<Utf8PathBuf>,
}Expand description
Search path configuration for finding modules and libraries.
Fields§
§module_paths: Vec<Utf8PathBuf>Paths to search for source modules.
interface_paths: Vec<Utf8PathBuf>Paths to search for interface files (.bhi).
library_paths: Vec<Utf8PathBuf>Paths to search for libraries.
Implementations§
Source§impl SearchPaths
impl SearchPaths
Sourcepub fn add_module_path(&mut self, path: impl Into<Utf8PathBuf>)
pub fn add_module_path(&mut self, path: impl Into<Utf8PathBuf>)
Add a module search path.
Sourcepub fn add_interface_path(&mut self, path: impl Into<Utf8PathBuf>)
pub fn add_interface_path(&mut self, path: impl Into<Utf8PathBuf>)
Add an interface search path.
Sourcepub fn add_library_path(&mut self, path: impl Into<Utf8PathBuf>)
pub fn add_library_path(&mut self, path: impl Into<Utf8PathBuf>)
Add a library search path.
Trait Implementations§
Source§impl Clone for SearchPaths
impl Clone for SearchPaths
Source§fn clone(&self) -> SearchPaths
fn clone(&self) -> SearchPaths
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 SearchPaths
impl Debug for SearchPaths
Source§impl Default for SearchPaths
impl Default for SearchPaths
Source§fn default() -> SearchPaths
fn default() -> SearchPaths
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchPaths
impl RefUnwindSafe for SearchPaths
impl Send for SearchPaths
impl Sync for SearchPaths
impl Unpin for SearchPaths
impl UnsafeUnpin for SearchPaths
impl UnwindSafe for SearchPaths
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