pub struct RustTarget(/* private fields */);
Expand description
Represents the version of the Rust language to target.
Implementations§
Source§impl RustTarget
impl RustTarget
Sourcepub fn stable(minor: u64, patch: u64) -> Result<RustTarget, InvalidRustTarget>
pub fn stable(minor: u64, patch: u64) -> Result<RustTarget, InvalidRustTarget>
Create a new RustTarget
for a stable release of Rust.
Source§impl RustTarget
impl RustTarget
Sourcepub const Nightly: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::nightly
instead.
pub const Nightly: RustTarget = _
RustTarget::nightly
instead.The nightly version of Rust, which introduces the following features:“
Sourcepub const Stable_1_82: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_82: RustTarget = _
RustTarget::stable
instead.Version 1.82 of Rust, which introduced the following features:
Sourcepub const Stable_1_77: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_77: RustTarget = _
RustTarget::stable
instead.Version 1.77 of Rust, which introduced the following features:
Sourcepub const Stable_1_73: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_73: RustTarget = _
RustTarget::stable
instead.Version 1.73 of Rust, which introduced the following features:
Sourcepub const Stable_1_71: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_71: RustTarget = _
RustTarget::stable
instead.Version 1.71 of Rust, which introduced the following features:
Sourcepub const Stable_1_68: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_68: RustTarget = _
RustTarget::stable
instead.Version 1.68 of Rust, which introduced the following features:
Sourcepub const Stable_1_64: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_64: RustTarget = _
RustTarget::stable
instead.Version 1.64 of Rust, which introduced the following features:
Sourcepub const Stable_1_51: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_51: RustTarget = _
RustTarget::stable
instead.Version 1.51 of Rust, which introduced the following features:
Sourcepub const Stable_1_59: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_59: RustTarget = _
RustTarget::stable
instead.Version 1.59 of Rust, which introduced the following features:
Sourcepub const Stable_1_47: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_47: RustTarget = _
RustTarget::stable
instead.Version 1.47 of Rust, which introduced the following features:
Sourcepub const Stable_1_43: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_43: RustTarget = _
RustTarget::stable
instead.Version 1.43 of Rust, which introduced the following features:
Sourcepub const Stable_1_40: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_40: RustTarget = _
RustTarget::stable
instead.Version 1.40 of Rust, which introduced the following features:
Sourcepub const Stable_1_36: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_36: RustTarget = _
RustTarget::stable
instead.Version 1.36 of Rust, which introduced the following features:
Sourcepub const Stable_1_33: RustTarget = _
👎Deprecated: The use of this constant is deprecated, please use RustTarget::stable
instead.
pub const Stable_1_33: RustTarget = _
RustTarget::stable
instead.Version 1.33 of Rust, which introduced the following features:
Sourcepub const fn nightly() -> RustTarget
pub const fn nightly() -> RustTarget
The nightly version of Rust, which introduces the following features:“
Trait Implementations§
Source§impl Clone for RustTarget
impl Clone for RustTarget
Source§fn clone(&self) -> RustTarget
fn clone(&self) -> RustTarget
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RustTarget
impl Debug for RustTarget
Source§impl Default for RustTarget
impl Default for RustTarget
Source§fn default() -> RustTarget
fn default() -> RustTarget
Source§impl Display for RustTarget
impl Display for RustTarget
Source§impl FromStr for RustTarget
impl FromStr for RustTarget
Source§impl Hash for RustTarget
impl Hash for RustTarget
Source§impl Ord for RustTarget
impl Ord for RustTarget
Source§fn cmp(&self, other: &RustTarget) -> Ordering
fn cmp(&self, other: &RustTarget) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RustTarget
impl PartialEq for RustTarget
Source§impl PartialOrd for RustTarget
impl PartialOrd for RustTarget
impl Copy for RustTarget
impl Eq for RustTarget
impl StructuralPartialEq for RustTarget
Auto Trait Implementations§
impl Freeze for RustTarget
impl RefUnwindSafe for RustTarget
impl Send for RustTarget
impl Sync for RustTarget
impl Unpin for RustTarget
impl UnwindSafe for RustTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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> ⓘ
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> ⓘ
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