Struct erg_parser::ast::VarSignature
source · [−]pub struct VarSignature {
pub pat: VarPattern,
pub t_spec: Option<TypeSpec>,
}
Fields
pat: VarPattern
t_spec: Option<TypeSpec>
Implementations
Trait Implementations
sourceimpl Clone for VarSignature
impl Clone for VarSignature
sourcefn clone(&self) -> VarSignature
fn clone(&self) -> VarSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VarSignature
impl Debug for VarSignature
sourceimpl Display for VarSignature
impl Display for VarSignature
sourceimpl Hash for VarSignature
impl Hash for VarSignature
sourceimpl Locational for VarSignature
impl Locational for VarSignature
sourceimpl NestedDisplay for VarSignature
impl NestedDisplay for VarSignature
sourceimpl PartialEq<VarSignature> for VarSignature
impl PartialEq<VarSignature> for VarSignature
sourcefn eq(&self, other: &VarSignature) -> bool
fn eq(&self, other: &VarSignature) -> bool
sourceimpl Stream<VarSignature> for VarArrayPattern
impl Stream<VarSignature> for VarArrayPattern
fn payload(self) -> Vec<VarSignature>
fn ref_payload(&self) -> &Vec<VarSignature>
fn ref_mut_payload(&mut self) -> &mut Vec<VarSignature>
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 into_iter(self) -> IntoIter<T, Global>
fn take_all(&mut self) -> Vec<T, Global>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
sourceimpl Stream<VarSignature> for VarTuplePattern
impl Stream<VarSignature> for VarTuplePattern
fn payload(self) -> Vec<VarSignature>
fn ref_payload(&self) -> &Vec<VarSignature>
fn ref_mut_payload(&mut self) -> &mut Vec<VarSignature>
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 into_iter(self) -> IntoIter<T, Global>
fn take_all(&mut self) -> Vec<T, Global>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
sourceimpl Stream<VarSignature> for Vars
impl Stream<VarSignature> for Vars
fn payload(self) -> Vec<VarSignature>
fn ref_payload(&self) -> &Vec<VarSignature>
fn ref_mut_payload(&mut self) -> &mut Vec<VarSignature>
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 into_iter(self) -> IntoIter<T, Global>
fn take_all(&mut self) -> Vec<T, Global>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
impl Eq for VarSignature
impl StructuralEq for VarSignature
impl StructuralPartialEq for VarSignature
Auto Trait Implementations
impl RefUnwindSafe for VarSignature
impl !Send for VarSignature
impl !Sync for VarSignature
impl Unpin for VarSignature
impl UnwindSafe for VarSignature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more