Enum erg_parser::ast::Record
source · pub enum Record {
Normal(NormalRecord),
Mixed(MixedRecord),
}
Variants§
Normal(NormalRecord)
Mixed(MixedRecord)
Implementations§
source§impl Record
impl Record
pub const fn new_mixed( l_brace: Token, r_brace: Token, attrs: Vec<RecordAttrOrIdent> ) -> Self
pub fn new_normal(l_brace: Token, r_brace: Token, attrs: RecordAttrs) -> Self
pub fn empty(l_brace: Token, r_brace: Token) -> Self
pub fn braces(&self) -> (&Token, &Token)
pub fn normalize(self) -> NormalRecord
pub fn keys(&self) -> Vec<&Identifier>
pub fn get(&self, name: &str) -> Option<&Def>
Trait Implementations§
source§impl Locational for Record
impl Locational for Record
source§impl NestedDisplay for Record
impl NestedDisplay for Record
source§impl PartialEq for Record
impl PartialEq for Record
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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