#[non_exhaustive]pub enum Channel {
Stable,
Beta,
Nightly(Date),
Dev,
}
Expand description
The channel of the rust compiler release.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stable
The stable compiler
Beta
The beta compiler
Nightly(Date)
The nightly compiler.
Dev
A development compiler version.
These are compiled directly instead of distributed through rustup.
Implementations§
Source§impl Channel
impl Channel
Sourcepub const fn is_nightly(&self) -> bool
pub const fn is_nightly(&self) -> bool
Check if this is the nightly channel.
Sourcepub const fn is_development(&self) -> bool
pub const 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