Struct erg_parser::ast::VarName
source · [−]pub struct VarName(_);
Expand description
symbol as a left value
Implementations
sourceimpl VarName
impl VarName
pub const fn new(symbol: Token) -> Self
pub const fn from_static(symbol: &'static str) -> Self
pub fn from_str(symbol: Str) -> Self
pub fn is_const(&self) -> bool
pub fn is_procedural(&self) -> bool
pub const fn token(&self) -> &Token
pub fn into_token(self) -> Token
pub const fn inspect(&self) -> &Str
Trait Implementations
sourceimpl Locational for VarName
impl Locational for VarName
sourceimpl PartialEq<VarName> for VarName
impl PartialEq<VarName> for VarName
impl Eq for VarName
impl StructuralEq for VarName
impl StructuralPartialEq for VarName
Auto Trait Implementations
impl RefUnwindSafe for VarName
impl !Send for VarName
impl !Sync for VarName
impl Unpin for VarName
impl UnwindSafe for VarName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more