pub enum ToolchainSection {
Path(ToolchainPath),
Spec(ToolchainSpec),
}
Variants§
Path(ToolchainPath)
Spec(ToolchainSpec)
Implementations§
Source§impl ToolchainSection
impl ToolchainSection
pub fn path(&self) -> Option<&ToolchainPath>
pub fn spec(&self) -> Option<&ToolchainSpec>
Trait Implementations§
Source§impl Clone for ToolchainSection
impl Clone for ToolchainSection
Source§fn clone(&self) -> ToolchainSection
fn clone(&self) -> ToolchainSection
Returns a copy of the value. Read more
1.0.0 · 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 ToolchainSection
impl Debug for ToolchainSection
Source§impl<'de> Deserialize<'de> for ToolchainSection
impl<'de> Deserialize<'de> for ToolchainSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolchainSection
impl PartialEq for ToolchainSection
Source§impl Serialize for ToolchainSection
impl Serialize for ToolchainSection
impl StructuralPartialEq for ToolchainSection
Auto Trait Implementations§
impl Freeze for ToolchainSection
impl RefUnwindSafe for ToolchainSection
impl Send for ToolchainSection
impl Sync for ToolchainSection
impl Unpin for ToolchainSection
impl UnwindSafe for ToolchainSection
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