pub enum Channel {
Stable,
Beta,
Nightly {
date: Date,
},
Development,
// some variants omitted
}
Expand description
The channel of the rust compiler release.
Variants§
Stable
A stable compiler version.
Beta
A beta compiler version.
Nightly
A nightly compiler version.
Development
A development compiler version.
These are compiled directly instead of distributed through rustup.
Implementations§
Source§impl Channel
impl Channel
Sourcepub fn is_nightly(&self) -> bool
pub fn is_nightly(&self) -> bool
Check if this is the nightly channel.
Sourcepub fn is_development(&self) -> bool
pub fn is_development(&self) -> bool
Check if this is the development channel.
Trait Implementations§
impl Copy for Channel
impl Eq for Channel
impl StructuralPartialEq for Channel
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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