Struct AstIdentifier
pub struct AstIdentifier {
pub name: String,
pub loc: SourceLocation,
}Expand description
An identifier is a user-defined name for variables, functions, enums, etc.
Fields§
§name: String§loc: SourceLocationImplementations§
§impl AstIdentifier
impl AstIdentifier
pub fn new<S: Into<String>>(identifier: S, loc: SourceLocation) -> Self
pub fn new<S: Into<String>>(identifier: S, loc: SourceLocation) -> Self
Creates an identifier.
Trait Implementations§
§impl Clone for AstIdentifier
impl Clone for AstIdentifier
§fn clone(&self) -> AstIdentifier
fn clone(&self) -> AstIdentifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for AstIdentifier
impl Debug for AstIdentifier
§impl Display for AstIdentifier
impl Display for AstIdentifier
§impl<'a> From<&'a AstIdentifier> for SourceIdentifier<'a>
impl<'a> From<&'a AstIdentifier> for SourceIdentifier<'a>
§fn from(id: &'a AstIdentifier) -> SourceIdentifier<'a>
fn from(id: &'a AstIdentifier) -> SourceIdentifier<'a>
Converts to this type from the input type.
§impl PartialEq for AstIdentifier
impl PartialEq for AstIdentifier
impl Eq for AstIdentifier
impl StructuralPartialEq for AstIdentifier
Auto Trait Implementations§
impl Freeze for AstIdentifier
impl RefUnwindSafe for AstIdentifier
impl Send for AstIdentifier
impl Sync for AstIdentifier
impl Unpin for AstIdentifier
impl UnwindSafe for AstIdentifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more