Struct erg_parser::ast::VarRecordPattern
source · pub struct VarRecordPattern { /* private fields */ }
Implementations§
source§impl VarRecordPattern
impl VarRecordPattern
pub const fn new(l_brace: Token, attrs: VarRecordAttrs, r_brace: Token) -> Self
Trait Implementations§
source§impl Clone for VarRecordPattern
impl Clone for VarRecordPattern
source§fn clone(&self) -> VarRecordPattern
fn clone(&self) -> VarRecordPattern
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 VarRecordPattern
impl Debug for VarRecordPattern
source§impl Display for VarRecordPattern
impl Display for VarRecordPattern
source§impl Hash for VarRecordPattern
impl Hash for VarRecordPattern
source§impl Locational for VarRecordPattern
impl Locational for VarRecordPattern
source§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl PartialEq<VarRecordPattern> for VarRecordPattern
impl PartialEq<VarRecordPattern> for VarRecordPattern
source§fn eq(&self, other: &VarRecordPattern) -> bool
fn eq(&self, other: &VarRecordPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VarRecordPattern
impl StructuralEq for VarRecordPattern
impl StructuralPartialEq for VarRecordPattern
Auto Trait Implementations§
impl RefUnwindSafe for VarRecordPattern
impl Send for VarRecordPattern
impl Sync for VarRecordPattern
impl Unpin for VarRecordPattern
impl UnwindSafe for VarRecordPattern
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