Struct erg_parser::ast::ParamRecordAttr
source · pub struct ParamRecordAttr {
pub lhs: Identifier,
pub rhs: NonDefaultParamSignature,
}
Fields§
§lhs: Identifier
§rhs: NonDefaultParamSignature
Implementations§
source§impl ParamRecordAttr
impl ParamRecordAttr
pub const fn new(lhs: Identifier, rhs: NonDefaultParamSignature) -> Self
Trait Implementations§
source§impl Clone for ParamRecordAttr
impl Clone for ParamRecordAttr
source§fn clone(&self) -> ParamRecordAttr
fn clone(&self) -> ParamRecordAttr
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 ParamRecordAttr
impl Debug for ParamRecordAttr
source§impl Display for ParamRecordAttr
impl Display for ParamRecordAttr
source§impl Hash for ParamRecordAttr
impl Hash for ParamRecordAttr
source§impl Locational for ParamRecordAttr
impl Locational for ParamRecordAttr
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 ParamRecordAttr
impl NestedDisplay for ParamRecordAttr
source§impl PartialEq<ParamRecordAttr> for ParamRecordAttr
impl PartialEq<ParamRecordAttr> for ParamRecordAttr
source§fn eq(&self, other: &ParamRecordAttr) -> bool
fn eq(&self, other: &ParamRecordAttr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Stream<ParamRecordAttr> for ParamRecordAttrs
impl Stream<ParamRecordAttr> for ParamRecordAttrs
fn payload(self) -> Vec<ParamRecordAttr>
fn ref_payload(&self) -> &Vec<ParamRecordAttr>
fn ref_mut_payload(&mut self) -> &mut Vec<ParamRecordAttr>
fn clear(&mut self)
fn len(&self) -> usize
fn size(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, idx: usize, elem: T)
fn remove(&mut self, idx: usize) -> T
fn push(&mut self, elem: T)
fn append<S>(&mut self, s: &mut S)where S: Stream<T>,
fn pop(&mut self) -> Option<T>
fn lpop(&mut self) -> Option<T>
fn get(&self, idx: usize) -> Option<&T>
fn get_mut(&mut self, idx: usize) -> Option<&mut T>
fn first(&self) -> Option<&T>
fn first_mut(&mut self) -> Option<&mut T>
fn last(&self) -> Option<&T>
fn last_mut(&mut self) -> Option<&mut T>
fn iter(&self) -> Iter<'_, T>
fn iter_mut(&mut self) -> IterMut<'_, T>
fn take_all(&mut self) -> Vec<T, Global>
fn extend<I>(&mut self, iter: I)where I: IntoIterator<Item = T>,
impl Eq for ParamRecordAttr
impl StructuralEq for ParamRecordAttr
impl StructuralPartialEq for ParamRecordAttr
Auto Trait Implementations§
impl RefUnwindSafe for ParamRecordAttr
impl Send for ParamRecordAttr
impl Sync for ParamRecordAttr
impl Unpin for ParamRecordAttr
impl UnwindSafe for ParamRecordAttr
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