pub enum ToolchainFile {
Legacy(LegacyToolchainFile),
Toml(RustToolchainToml),
}
Expand description
Model of a Rust toolchain file, which can be used to pin a specific toolchain to a Rust project.
Variants
Legacy(LegacyToolchainFile)
The legacy variant of the toolchain file only specifies the name of a toolchain
Toml(RustToolchainToml)
A specification of a toolchain file, which builds on top of the TOML format.
Trait Implementations
sourceimpl Debug for ToolchainFile
impl Debug for ToolchainFile
sourceimpl PartialEq<ToolchainFile> for ToolchainFile
impl PartialEq<ToolchainFile> for ToolchainFile
sourcefn eq(&self, other: &ToolchainFile) -> bool
fn eq(&self, other: &ToolchainFile) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ToolchainFile) -> bool
fn ne(&self, other: &ToolchainFile) -> bool
This method tests for !=
.
impl StructuralPartialEq for ToolchainFile
Auto Trait Implementations
impl RefUnwindSafe for ToolchainFile
impl Send for ToolchainFile
impl Sync for ToolchainFile
impl Unpin for ToolchainFile
impl UnwindSafe for ToolchainFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more