Enum erg_parser::ast::RecordAttrOrIdent
source · pub enum RecordAttrOrIdent {
Attr(Def),
Ident(Identifier),
}
Variants§
Attr(Def)
Ident(Identifier)
Implementations§
source§impl RecordAttrOrIdent
impl RecordAttrOrIdent
pub fn ident(&self) -> Option<&Identifier>
Trait Implementations§
source§impl Clone for RecordAttrOrIdent
impl Clone for RecordAttrOrIdent
source§fn clone(&self) -> RecordAttrOrIdent
fn clone(&self) -> RecordAttrOrIdent
Returns a copy 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 moresource§impl Debug for RecordAttrOrIdent
impl Debug for RecordAttrOrIdent
source§impl Display for RecordAttrOrIdent
impl Display for RecordAttrOrIdent
source§impl Hash for RecordAttrOrIdent
impl Hash for RecordAttrOrIdent
source§impl Locational for RecordAttrOrIdent
impl Locational for RecordAttrOrIdent
source§impl NestedDisplay for RecordAttrOrIdent
impl NestedDisplay for RecordAttrOrIdent
source§impl PartialEq for RecordAttrOrIdent
impl PartialEq for RecordAttrOrIdent
source§fn eq(&self, other: &RecordAttrOrIdent) -> bool
fn eq(&self, other: &RecordAttrOrIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RecordAttrOrIdent
impl StructuralPartialEq for RecordAttrOrIdent
Auto Trait Implementations§
impl Freeze for RecordAttrOrIdent
impl RefUnwindSafe for RecordAttrOrIdent
impl Send for RecordAttrOrIdent
impl Sync for RecordAttrOrIdent
impl Unpin for RecordAttrOrIdent
impl UnwindSafe for RecordAttrOrIdent
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