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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> QuickToOwned for Twhere
T: ToOwned,
impl<T> QuickToOwned for Twhere
T: ToOwned,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.