Struct erg_parser::ast::ConstArrayWithLength
source · pub struct ConstArrayWithLength {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub elem: Box<ConstExpr>,
pub length: Box<ConstExpr>,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§elem: Box<ConstExpr>
§length: Box<ConstExpr>
Implementations§
Trait Implementations§
source§impl Clone for ConstArrayWithLength
impl Clone for ConstArrayWithLength
source§fn clone(&self) -> ConstArrayWithLength
fn clone(&self) -> ConstArrayWithLength
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 ConstArrayWithLength
impl Debug for ConstArrayWithLength
source§impl Display for ConstArrayWithLength
impl Display for ConstArrayWithLength
source§impl Hash for ConstArrayWithLength
impl Hash for ConstArrayWithLength
source§impl Locational for ConstArrayWithLength
impl Locational for ConstArrayWithLength
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 NestedDisplay for ConstArrayWithLength
impl NestedDisplay for ConstArrayWithLength
source§impl PartialEq<ConstArrayWithLength> for ConstArrayWithLength
impl PartialEq<ConstArrayWithLength> for ConstArrayWithLength
source§fn eq(&self, other: &ConstArrayWithLength) -> bool
fn eq(&self, other: &ConstArrayWithLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstArrayWithLength
impl StructuralEq for ConstArrayWithLength
impl StructuralPartialEq for ConstArrayWithLength
Auto Trait Implementations§
impl RefUnwindSafe for ConstArrayWithLength
impl Send for ConstArrayWithLength
impl Sync for ConstArrayWithLength
impl Unpin for ConstArrayWithLength
impl UnwindSafe for ConstArrayWithLength
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