Enum bindgen::RustTarget [−][src]
pub enum RustTarget { Stable_1_0, Stable_1_19, Stable_1_20, Stable_1_21, Stable_1_25, Nightly, }
Represents the version of the Rust language to target.
To support a beta release, use the corresponding stable release.
This enum will have more variants added as necessary.
Variants
Stable_1_0
Rust stable 1.0
Stable_1_19
Rust stable 1.19
Stable_1_20
Rust stable 1.20
Stable_1_21
Rust stable 1.21
Stable_1_25
Rust stable 1.25
Nightly
Nightly rust
Trait Implementations
impl Debug for RustTarget
[src]
impl Debug for RustTarget
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for RustTarget
[src]
impl Copy for RustTarget
impl Clone for RustTarget
[src]
impl Clone for RustTarget
fn clone(&self) -> RustTarget
[src]
fn clone(&self) -> RustTarget
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for RustTarget
[src]
impl Eq for RustTarget
impl PartialEq for RustTarget
[src]
impl PartialEq for RustTarget
fn eq(&self, other: &RustTarget) -> bool
[src]
fn eq(&self, other: &RustTarget) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialOrd for RustTarget
[src]
impl PartialOrd for RustTarget
fn partial_cmp(&self, other: &RustTarget) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &RustTarget) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Hash for RustTarget
[src]
impl Hash for RustTarget
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Default for RustTarget
[src]
impl Default for RustTarget
fn default() -> RustTarget
[src]
fn default() -> RustTarget
Gives the latest stable Rust version
impl FromStr for RustTarget
[src]
impl FromStr for RustTarget
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Create a RustTarget
from a string.
- The stable/beta versions of Rust are of the form "1.0", "1.19", etc.
- The nightly version should be specified with "nightly".
impl From<RustTarget> for String
[src]
impl From<RustTarget> for String
fn from(target: RustTarget) -> Self
[src]
fn from(target: RustTarget) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for RustTarget
impl Send for RustTarget
impl Sync for RustTarget
impl Sync for RustTarget