Struct ligen_c_core::ast::Identifier [−]
pub struct Identifier { pub name: String, }
Expand description
Identifier structure
Fields
name: String
Name field of Identifier
Implementations
impl Identifier
impl Identifier
pub fn new<S>(name: S) -> Identifier where
S: AsRef<str>,
pub fn new<S>(name: S) -> Identifier where
S: AsRef<str>,
Create a new Identifier
Trait Implementations
impl Clone for Identifier
impl Clone for Identifier
pub fn clone(&self) -> Identifier
pub fn clone(&self) -> Identifier
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for Identifier
impl Debug for Identifier
impl<'_> From<&'_ str> for Identifier
impl<'_> From<&'_ str> for Identifier
pub fn from(name: &str) -> Identifier
pub fn from(name: &str) -> Identifier
Performs the conversion.
impl From<Ident> for Identifier
impl From<Ident> for Identifier
pub fn from(ident: Ident) -> Identifier
pub fn from(ident: Ident) -> Identifier
Performs the conversion.
impl PartialEq<Identifier> for Identifier
impl PartialEq<Identifier> for Identifier
pub fn eq(&self, other: &Identifier) -> bool
pub fn eq(&self, other: &Identifier) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &Identifier) -> bool
pub fn ne(&self, other: &Identifier) -> bool
This method tests for !=
.
impl ReplaceIdentifier for Identifier
impl ReplaceIdentifier for Identifier
pub fn replace_identifier(&mut self, old: &Identifier, new: &Identifier)
pub fn replace_identifier(&mut self, old: &Identifier, new: &Identifier)
Replace all occurrences of the old
identifier by the new
identifier.
impl ToTokens for Identifier
impl ToTokens for Identifier
pub fn to_tokens(&self, tokens: &mut TokenStream)
pub fn to_tokens(&self, tokens: &mut TokenStream)
Write self
to the given TokenStream
. Read more
Convert self
directly into a TokenStream
object. Read more
Convert self
directly into a TokenStream
object. Read more
impl StructuralPartialEq for Identifier
Auto Trait Implementations
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more