pub struct Toolchain {
pub channel: Channel,
pub date: Option<Date<Utc>>,
pub target_triple: Option<String>,
}
Expand description
A rust toolchain
Fields§
§channel: Channel
The channel of the toolchain
date: Option<Date<Utc>>
An optional date of the toolchain
target_triple: Option<String>
An optional target triple for the toolchain
Implementations§
Source§impl Toolchain
impl Toolchain
Sourcepub fn with_channel(channel: Channel) -> Self
pub fn with_channel(channel: Channel) -> Self
Create a new toolchain with a channel
Sourcepub fn with_version(major: u32, minor: u32) -> Self
pub fn with_version(major: u32, minor: u32) -> Self
Create a new toolchain with a specific version
Sourcepub fn dated_nightly<Tz: TimeZone>(date: Date<Tz>) -> Self
pub fn dated_nightly<Tz: TimeZone>(date: Date<Tz>) -> Self
A nightly release on a specific date
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Toolchain
impl RefUnwindSafe for Toolchain
impl Send for Toolchain
impl Sync for Toolchain
impl Unpin for Toolchain
impl UnwindSafe for Toolchain
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<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more