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