Struct erg_parser::ast::TypeBoundSpecs
source · pub struct TypeBoundSpecs(/* private fields */);
Implementations§
source§impl TypeBoundSpecs
impl TypeBoundSpecs
pub const fn new(v: Vec<TypeBoundSpec>) -> TypeBoundSpecs
pub fn empty() -> TypeBoundSpecs
Trait Implementations§
source§impl Clone for TypeBoundSpecs
impl Clone for TypeBoundSpecs
source§fn clone(&self) -> TypeBoundSpecs
fn clone(&self) -> TypeBoundSpecs
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 TypeBoundSpecs
impl Debug for TypeBoundSpecs
source§impl Default for TypeBoundSpecs
impl Default for TypeBoundSpecs
source§impl Display for TypeBoundSpecs
impl Display for TypeBoundSpecs
source§impl From<Vec<TypeBoundSpec>> for TypeBoundSpecs
impl From<Vec<TypeBoundSpec>> for TypeBoundSpecs
source§fn from(errs: Vec<TypeBoundSpec>) -> Self
fn from(errs: Vec<TypeBoundSpec>) -> Self
Converts to this type from the input type.
source§impl FromIterator<TypeBoundSpec> for TypeBoundSpecs
impl FromIterator<TypeBoundSpec> for TypeBoundSpecs
source§fn from_iter<I: IntoIterator<Item = TypeBoundSpec>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = TypeBoundSpec>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl Hash for TypeBoundSpecs
impl Hash for TypeBoundSpecs
source§impl Index<usize> for TypeBoundSpecs
impl Index<usize> for TypeBoundSpecs
source§impl IntoIterator for TypeBoundSpecs
impl IntoIterator for TypeBoundSpecs
§type Item = TypeBoundSpec
type Item = TypeBoundSpec
The type of the elements being iterated over.
§type IntoIter = IntoIter<<TypeBoundSpecs as IntoIterator>::Item>
type IntoIter = IntoIter<<TypeBoundSpecs as IntoIterator>::Item>
Which kind of iterator are we turning this into?
source§impl Locational for TypeBoundSpecs
impl Locational for TypeBoundSpecs
source§impl PartialEq for TypeBoundSpecs
impl PartialEq for TypeBoundSpecs
source§fn eq(&self, other: &TypeBoundSpecs) -> bool
fn eq(&self, other: &TypeBoundSpecs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Stream<TypeBoundSpec> for TypeBoundSpecs
impl Stream<TypeBoundSpec> for TypeBoundSpecs
fn payload(self) -> Vec<TypeBoundSpec>
fn ref_payload(&self) -> &Vec<TypeBoundSpec>
fn ref_mut_payload(&mut self) -> &mut Vec<TypeBoundSpec>
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>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
fn split_off(&mut self, at: usize) -> Vec<T>
source§fn retain(&mut self, f: impl FnMut(&T) -> bool)
fn retain(&mut self, f: impl FnMut(&T) -> bool)
Remove all elements that don’t satisfy the predicate.
fn concat(self, other: Self) -> Self
impl Eq for TypeBoundSpecs
impl StructuralPartialEq for TypeBoundSpecs
Auto Trait Implementations§
impl Freeze for TypeBoundSpecs
impl RefUnwindSafe for TypeBoundSpecs
impl Send for TypeBoundSpecs
impl Sync for TypeBoundSpecs
impl Unpin for TypeBoundSpecs
impl UnwindSafe for TypeBoundSpecs
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