Struct erg_compiler::hir::SetWithLength
source · pub struct SetWithLength {
pub l_brace: Token,
pub r_brace: Token,
pub t: Type,
pub elem: Box<Expr>,
pub len: Box<Expr>,
}
Fields§
§l_brace: Token
§r_brace: Token
§t: Type
§elem: Box<Expr>
§len: Box<Expr>
Implementations§
Trait Implementations§
source§impl Clone for SetWithLength
impl Clone for SetWithLength
source§fn clone(&self) -> SetWithLength
fn clone(&self) -> SetWithLength
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 SetWithLength
impl Debug for SetWithLength
source§impl Display for SetWithLength
impl Display for SetWithLength
source§impl HasType for SetWithLength
impl HasType for SetWithLength
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 SetWithLength
impl Hash for SetWithLength
source§impl Locational for SetWithLength
impl Locational for SetWithLength
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 SetWithLength
impl NestedDisplay for SetWithLength
source§impl NoTypeDisplay for SetWithLength
impl NoTypeDisplay for SetWithLength
fn to_string_notype(&self) -> String
source§impl PartialEq<SetWithLength> for SetWithLength
impl PartialEq<SetWithLength> for SetWithLength
source§fn eq(&self, other: &SetWithLength) -> bool
fn eq(&self, other: &SetWithLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.