pub struct RustToolchainLoader { /* private fields */ }Implementations§
Source§impl RustToolchainLoader
impl RustToolchainLoader
pub fn new(cwd: impl Into<PathBuf>) -> Self
pub fn with_module_paths( cwd: impl Into<PathBuf>, _module_paths: Vec<PathBuf>, ) -> Self
pub fn load(&mut self) -> Result<RustToolchain, String>
pub fn resolve(&self) -> Option<RustToolchain>
pub fn get_module_paths(&self) -> Vec<PathBuf>
Trait Implementations§
Source§impl Clone for RustToolchainLoader
impl Clone for RustToolchainLoader
Source§fn clone(&self) -> RustToolchainLoader
fn clone(&self) -> RustToolchainLoader
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 RustToolchainLoader
impl Debug for RustToolchainLoader
Source§impl Default for RustToolchainLoader
impl Default for RustToolchainLoader
Source§impl PartialEq for RustToolchainLoader
impl PartialEq for RustToolchainLoader
Source§fn eq(&self, other: &RustToolchainLoader) -> bool
fn eq(&self, other: &RustToolchainLoader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RustToolchainLoader
impl StructuralPartialEq for RustToolchainLoader
Auto Trait Implementations§
impl Freeze for RustToolchainLoader
impl RefUnwindSafe for RustToolchainLoader
impl Send for RustToolchainLoader
impl Sync for RustToolchainLoader
impl Unpin for RustToolchainLoader
impl UnsafeUnpin for RustToolchainLoader
impl UnwindSafe for RustToolchainLoader
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.