Enum syntax::edition::Edition [−][src]
pub enum Edition {
Edition2015,
Edition2018,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The edition of the compiler (RFC 2052)
Variants
Edition2015🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The 2015 edition
Edition2018🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The 2018 edition
Methods
impl Edition[src]
impl Editionpub fn lint_name(&self) -> &'static str[src]
pub fn lint_name(&self) -> &'static str🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn feature_name(&self) -> &'static str[src]
pub fn feature_name(&self) -> &'static str🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn is_stable(&self) -> bool[src]
pub fn is_stable(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Debug for Edition[src]
impl Debug for Editionfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Eq for Edition[src]
impl Eq for Editionfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Display for Edition[src]
impl Display for Editionfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl PartialEq<Edition> for Edition[src]
impl PartialEq<Edition> for Editionfn eq(&self, other: &Edition) -> bool[src]
fn eq(&self, other: &Edition) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Decodable for Edition[src]
impl Decodable for Editionfn decode<__D>(d: &mut __D) -> Result<Edition, <__D as Decoder>::Error> where
__D: Decoder, [src]
fn decode<__D>(d: &mut __D) -> Result<Edition, <__D as Decoder>::Error> where
__D: Decoder, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Clone for Edition[src]
impl Clone for Editionfn clone(&self) -> Edition[src]
fn clone(&self) -> EditionReturns 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 PartialOrd<Edition> for Edition[src]
impl PartialOrd<Edition> for Editionfn partial_cmp(&self, other: &Edition) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Edition) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl FromStr for Edition[src]
impl FromStr for Editiontype Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Edition, ()>[src]
fn from_str(s: &str) -> Result<Edition, ()>Parses a string s to return a value of this type. Read more
impl Ord for Edition[src]
impl Ord for Editionfn cmp(&self, other: &Edition) -> Ordering[src]
fn cmp(&self, other: &Edition) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Copy for Edition[src]
impl Copy for Editionimpl Encodable for Edition[src]
impl Encodable for Editionfn encode<__S>(&self, s: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder, [src]
fn encode<__S>(&self, s: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder, 🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Hash for Edition[src]
impl Hash for Edition