Struct erg_compiler::hir::NormalArray
source · pub struct NormalArray {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub t: Type,
pub elems: Args,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§t: Type
§elems: Args
Implementations§
Trait Implementations§
source§impl Clone for NormalArray
impl Clone for NormalArray
source§fn clone(&self) -> NormalArray
fn clone(&self) -> NormalArray
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 NormalArray
impl Debug for NormalArray
source§impl Display for NormalArray
impl Display for NormalArray
source§impl HasType for NormalArray
impl HasType for NormalArray
fn ref_t(&self) -> &Type
source§fn ref_mut_t(&mut self) -> &mut Type
fn ref_mut_t(&mut self) -> &mut Type
x.ref_mut_t()
may panic, in which case x
is Call
and x.ref_t() == Type::Failure
.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 NormalArray
impl Hash for NormalArray
source§impl Locational for NormalArray
impl Locational for NormalArray
source§impl NestedDisplay for NormalArray
impl NestedDisplay for NormalArray
source§impl NoTypeDisplay for NormalArray
impl NoTypeDisplay for NormalArray
fn to_string_notype(&self) -> String
source§impl PartialEq<NormalArray> for NormalArray
impl PartialEq<NormalArray> for NormalArray
source§fn eq(&self, other: &NormalArray) -> bool
fn eq(&self, other: &NormalArray) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NormalArray
impl StructuralEq for NormalArray
impl StructuralPartialEq for NormalArray
Auto Trait Implementations§
impl RefUnwindSafe for NormalArray
impl Send for NormalArray
impl Sync for NormalArray
impl Unpin for NormalArray
impl UnwindSafe for NormalArray
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