Struct erg_parser::ast::TypeAscription
source · [−]Expand description
type_ascription ::= expr ‘:’ type | expr ‘<:’ type | expr ‘:>’ type
Fields
expr: Box<Expr>
op: Token
t_spec: TypeSpec
Implementations
Trait Implementations
sourceimpl Clone for TypeAscription
impl Clone for TypeAscription
sourcefn clone(&self) -> TypeAscription
fn clone(&self) -> TypeAscription
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 moresourceimpl Debug for TypeAscription
impl Debug for TypeAscription
sourceimpl Display for TypeAscription
impl Display for TypeAscription
sourceimpl Hash for TypeAscription
impl Hash for TypeAscription
sourceimpl Locational for TypeAscription
impl Locational for TypeAscription
sourceimpl NestedDisplay for TypeAscription
impl NestedDisplay for TypeAscription
sourceimpl PartialEq<TypeAscription> for TypeAscription
impl PartialEq<TypeAscription> for TypeAscription
sourcefn eq(&self, other: &TypeAscription) -> bool
fn eq(&self, other: &TypeAscription) -> bool
impl Eq for TypeAscription
impl StructuralEq for TypeAscription
impl StructuralPartialEq for TypeAscription
Auto Trait Implementations
impl RefUnwindSafe for TypeAscription
impl !Send for TypeAscription
impl !Sync for TypeAscription
impl Unpin for TypeAscription
impl UnwindSafe for TypeAscription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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