Enum erg_parser::ast::VisRestriction
source · pub enum VisRestriction {
Namespaces(Namespaces),
SubtypeOf(Box<TypeSpec>),
}
Variants§
Namespaces(Namespaces)
SubtypeOf(Box<TypeSpec>)
Trait Implementations§
source§impl Clone for VisRestriction
impl Clone for VisRestriction
source§fn clone(&self) -> VisRestriction
fn clone(&self) -> VisRestriction
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 VisRestriction
impl Debug for VisRestriction
source§impl Display for VisRestriction
impl Display for VisRestriction
source§impl Hash for VisRestriction
impl Hash for VisRestriction
source§impl Locational for VisRestriction
impl Locational for VisRestriction
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 VisRestriction
impl NestedDisplay for VisRestriction
source§impl PartialEq<VisRestriction> for VisRestriction
impl PartialEq<VisRestriction> for VisRestriction
source§fn eq(&self, other: &VisRestriction) -> bool
fn eq(&self, other: &VisRestriction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.