pub enum Channel {
Stable(Stable),
Beta(Beta),
Nightly(Nightly),
}Expand description
Variants§
Stable(Stable)
The stable release channel
Beta(Beta)
The beta release channel
Nightly(Nightly)
The nightly release channel
Implementations§
Source§impl Channel
impl Channel
Sourcepub fn stable(version: RustVersion) -> Channel
pub fn stable(version: RustVersion) -> Channel
Create a new Stable channel instance.
Sourcepub fn beta(version: RustVersion) -> Channel
pub fn beta(version: RustVersion) -> Channel
Create a new Beta channel instance.
Sourcepub fn is_nightly(&self) -> bool
pub fn is_nightly(&self) -> bool
Sourcepub fn version(&self) -> Option<RustVersion>
pub fn version(&self) -> Option<RustVersion>
Returns the release version, or None, if it’s a nightly release.
Trait Implementations§
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 UnsafeUnpin 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