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