Struct erg_compiler::hir::ListWithLength
source · pub struct ListWithLength {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub t: Type,
pub elem: Box<Expr>,
pub len: Option<Box<Expr>>,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§t: Type
§elem: Box<Expr>
§len: Option<Box<Expr>>
Implementations§
Trait Implementations§
source§impl Clone for ListWithLength
impl Clone for ListWithLength
source§fn clone(&self) -> ListWithLength
fn clone(&self) -> ListWithLength
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 ListWithLength
impl Debug for ListWithLength
source§impl Display for ListWithLength
impl Display for ListWithLength
source§impl HasType for ListWithLength
impl HasType for ListWithLength
fn ref_t(&self) -> &Type
fn ref_mut_t(&mut self) -> Option<&mut Type>
fn signature_t(&self) -> Option<&Type>
fn signature_mut_t(&mut self) -> Option<&mut Type>
fn t(&self) -> Type
fn inner_ts(&self) -> Vec<Type>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
source§impl Hash for ListWithLength
impl Hash for ListWithLength
source§impl Locational for ListWithLength
impl Locational for ListWithLength
source§impl NestedDisplay for ListWithLength
impl NestedDisplay for ListWithLength
source§impl NoTypeDisplay for ListWithLength
impl NoTypeDisplay for ListWithLength
fn to_string_notype(&self) -> String
source§impl PartialEq for ListWithLength
impl PartialEq for ListWithLength
source§fn eq(&self, other: &ListWithLength) -> bool
fn eq(&self, other: &ListWithLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ListWithLength
impl StructuralPartialEq for ListWithLength
Auto Trait Implementations§
impl Freeze for ListWithLength
impl RefUnwindSafe for ListWithLength
impl Send for ListWithLength
impl Sync for ListWithLength
impl Unpin for ListWithLength
impl UnwindSafe for ListWithLength
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