Enum erg_parser::ast::VisModifierSpec
source · pub enum VisModifierSpec {
Private,
Auto,
Public(Token),
ExplicitPrivate(Token),
Restricted(VisRestriction),
}
Variants§
Implementations§
source§impl VisModifierSpec
impl VisModifierSpec
pub const fn is_public(&self) -> bool
pub const fn is_private(&self) -> bool
pub const fn display_as_accessor(&self) -> &'static str
Trait Implementations§
source§impl Clone for VisModifierSpec
impl Clone for VisModifierSpec
source§fn clone(&self) -> VisModifierSpec
fn clone(&self) -> VisModifierSpec
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 VisModifierSpec
impl Debug for VisModifierSpec
source§impl Display for VisModifierSpec
impl Display for VisModifierSpec
source§impl Hash for VisModifierSpec
impl Hash for VisModifierSpec
source§impl Locational for VisModifierSpec
impl Locational for VisModifierSpec
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 VisModifierSpec
impl NestedDisplay for VisModifierSpec
source§impl PartialEq<VisModifierSpec> for VisModifierSpec
impl PartialEq<VisModifierSpec> for VisModifierSpec
source§fn eq(&self, other: &VisModifierSpec) -> bool
fn eq(&self, other: &VisModifierSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.