Struct erg_parser::ast::TypeBoundSpecs
source · pub struct TypeBoundSpecs(_);
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, Global>> for TypeBoundSpecs
impl From<Vec<TypeBoundSpec, Global>> 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, Global>
type IntoIter = IntoIter<<TypeBoundSpecs as IntoIterator>::Item, Global>
Which kind of iterator are we turning this into?
source§impl Locational for TypeBoundSpecs
impl Locational for TypeBoundSpecs
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<TypeBoundSpecs> for TypeBoundSpecs
impl PartialEq<TypeBoundSpecs> 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 ==
.