Struct RustTarget

#[repr(transparent)]
pub struct RustTarget(/* private field */);

Represents the version of the Rust language to target.

Implementations

impl RustTarget

fn stable(minor: u64, patch: u64) -> Result<Self, InvalidRustTarget>

Create a new RustTarget for a stable release of Rust.

impl RustTarget

const Nightly: Self = _;

The nightly version of Rust, which introduces the following features:"

const fn nightly() -> Self

The nightly version of Rust, which introduces the following features:"

const Stable_1_82: Self = _;

Version 1.82 of Rust, which introduced the following features:

const Stable_1_77: Self = _;

Version 1.77 of Rust, which introduced the following features:

const Stable_1_73: Self = _;

Version 1.73 of Rust, which introduced the following features:

const Stable_1_71: Self = _;

Version 1.71 of Rust, which introduced the following features:

const Stable_1_68: Self = _;

Version 1.68 of Rust, which introduced the following features:

const Stable_1_64: Self = _;

Version 1.64 of Rust, which introduced the following features:

const Stable_1_51: Self = _;

Version 1.51 of Rust, which introduced the following features:

const Stable_1_59: Self = _;

Version 1.59 of Rust, which introduced the following features:

const Stable_1_47: Self = _;

Version 1.47 of Rust, which introduced the following features:

const Stable_1_43: Self = _;

Version 1.43 of Rust, which introduced the following features:

const Stable_1_40: Self = _;

Version 1.40 of Rust, which introduced the following features:

const Stable_1_36: Self = _;

Version 1.36 of Rust, which introduced the following features:

const Stable_1_33: Self = _;

Version 1.33 of Rust, which introduced the following features:

Trait Implementations

impl Clone for RustTarget

fn clone(&self) -> RustTarget

impl Copy for RustTarget

impl Debug for RustTarget

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for RustTarget

fn default() -> Self

impl Display for RustTarget

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for RustTarget

impl FromStr for RustTarget

type Err = Error;
fn from_str(input: &str) -> Result<Self, Self::Err>

impl Hash for RustTarget

fn hash<__H: Hasher>(&self, state: &mut __H)

impl Ord for RustTarget

fn cmp(&self, other: &RustTarget) -> Ordering

impl PartialEq for RustTarget

fn eq(&self, other: &RustTarget) -> bool

impl PartialOrd for RustTarget

fn partial_cmp(&self, other: &RustTarget) -> Option<Ordering>

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 UnsafeUnpin for RustTarget

impl UnwindSafe for RustTarget

Blanket Implementations

impl<T> Any for RustTarget where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for RustTarget where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for RustTarget where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for RustTarget where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for RustTarget

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for RustTarget

impl<T> ToOwned for RustTarget where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for RustTarget where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for RustTarget where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for RustTarget where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for RustTarget where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>