Struct syntax::codemap::symbol::keywords::Keyword [−][src]
pub struct Keyword { ident: Ident, }
🔬 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?
Fields
ident: Ident
🔬 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?
Methods
impl Keyword
[src]
impl Keyword
pub fn ident(self) -> Ident
[src]
pub fn ident(self) -> Ident
🔬 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 name(self) -> Symbol
[src]
pub fn name(self) -> Symbol
🔬 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 Eq for Keyword
[src]
impl Eq for Keyword
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl PartialEq<Keyword> for Keyword
[src]
impl PartialEq<Keyword> for Keyword
fn eq(&self, other: &Keyword) -> bool
[src]
fn eq(&self, other: &Keyword) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Keyword) -> bool
[src]
fn ne(&self, other: &Keyword) -> bool
This method tests for !=
.
impl Clone for Keyword
[src]
impl Clone for Keyword
fn clone(&self) -> Keyword
[src]
fn clone(&self) -> Keyword
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 FromStr for Keyword
[src]
impl FromStr for Keyword
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Keyword, ()>
[src]
fn from_str(s: &str) -> Result<Keyword, ()>
Parses a string s
to return a value of this type. Read more
impl Copy for Keyword
[src]
impl Copy for Keyword