Enum erg_parser::ast::PreDeclTypeSpec
source · [−]pub enum PreDeclTypeSpec {
Simple(SimpleTypeSpec),
Attr {
namespace: Vec<VarName>,
t: SimpleTypeSpec,
},
Subscr {
namespace: Vec<VarName>,
name: VarName,
index: Token,
},
}
Variants
Simple(SimpleTypeSpec)
Attr
Subscr
Trait Implementations
sourceimpl Clone for PreDeclTypeSpec
impl Clone for PreDeclTypeSpec
sourcefn clone(&self) -> PreDeclTypeSpec
fn clone(&self) -> PreDeclTypeSpec
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 PreDeclTypeSpec
impl Debug for PreDeclTypeSpec
sourceimpl Display for PreDeclTypeSpec
impl Display for PreDeclTypeSpec
sourceimpl Hash for PreDeclTypeSpec
impl Hash for PreDeclTypeSpec
sourceimpl Locational for PreDeclTypeSpec
impl Locational for PreDeclTypeSpec
sourceimpl PartialEq<PreDeclTypeSpec> for PreDeclTypeSpec
impl PartialEq<PreDeclTypeSpec> for PreDeclTypeSpec
sourcefn eq(&self, other: &PreDeclTypeSpec) -> bool
fn eq(&self, other: &PreDeclTypeSpec) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PreDeclTypeSpec) -> bool
fn ne(&self, other: &PreDeclTypeSpec) -> bool
This method tests for !=
.
impl Eq for PreDeclTypeSpec
impl StructuralEq for PreDeclTypeSpec
impl StructuralPartialEq for PreDeclTypeSpec
Auto Trait Implementations
impl RefUnwindSafe for PreDeclTypeSpec
impl !Send for PreDeclTypeSpec
impl !Sync for PreDeclTypeSpec
impl Unpin for PreDeclTypeSpec
impl UnwindSafe for PreDeclTypeSpec
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