Enum erg_parser::ast::TypeBoundSpec
source · [−]pub enum TypeBoundSpec {
Subtype {
sub: VarName,
sup: TypeSpec,
},
Instance {
name: VarName,
ty: TypeSpec,
},
}
Variants
Subtype
Instance
Trait Implementations
sourceimpl Clone for TypeBoundSpec
impl Clone for TypeBoundSpec
sourcefn clone(&self) -> TypeBoundSpec
fn clone(&self) -> TypeBoundSpec
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 more
sourceimpl Debug for TypeBoundSpec
impl Debug for TypeBoundSpec
sourceimpl Display for TypeBoundSpec
impl Display for TypeBoundSpec
sourceimpl Hash for TypeBoundSpec
impl Hash for TypeBoundSpec
sourceimpl Locational for TypeBoundSpec
impl Locational for TypeBoundSpec
sourceimpl NestedDisplay for TypeBoundSpec
impl NestedDisplay for TypeBoundSpec
sourceimpl PartialEq<TypeBoundSpec> for TypeBoundSpec
impl PartialEq<TypeBoundSpec> for TypeBoundSpec
sourcefn eq(&self, other: &TypeBoundSpec) -> bool
fn eq(&self, other: &TypeBoundSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TypeBoundSpec) -> bool
fn ne(&self, other: &TypeBoundSpec) -> bool
This method tests for !=
.
sourceimpl 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 into_iter(self) -> IntoIter<T, Global>
fn take_all(&mut self) -> Vec<T, Global>
impl Eq for TypeBoundSpec
impl StructuralEq for TypeBoundSpec
impl StructuralPartialEq for TypeBoundSpec
Auto Trait Implementations
impl !RefUnwindSafe for TypeBoundSpec
impl !Send for TypeBoundSpec
impl !Sync for TypeBoundSpec
impl Unpin for TypeBoundSpec
impl !UnwindSafe for TypeBoundSpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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