Struct ruast::TypeAscription
source · pub struct TypeAscription {
pub expr: Box<Expr>,
pub ty: Type,
}Fields§
§expr: Box<Expr>§ty: TypeImplementations§
Trait Implementations§
source§impl Clone for TypeAscription
impl Clone for TypeAscription
source§fn clone(&self) -> TypeAscription
fn clone(&self) -> TypeAscription
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 TypeAscription
impl Debug for TypeAscription
source§impl Display for TypeAscription
impl Display for TypeAscription
source§impl From<TypeAscription> for ExprKind
impl From<TypeAscription> for ExprKind
source§fn from(item: TypeAscription) -> Self
fn from(item: TypeAscription) -> Self
Converts to this type from the input type.
source§impl From<TypeAscription> for TokenStream
impl From<TypeAscription> for TokenStream
source§fn from(value: TypeAscription) -> Self
fn from(value: TypeAscription) -> Self
Converts to this type from the input type.
source§impl Hash for TypeAscription
impl Hash for TypeAscription
source§impl PartialEq for TypeAscription
impl PartialEq for TypeAscription
source§fn eq(&self, other: &TypeAscription) -> bool
fn eq(&self, other: &TypeAscription) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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§
source§impl<E> Accessible for Ewhere
E: Into<Expr>,
impl<E> Accessible for Ewhere E: Into<Expr>,
source§impl<E> Assignable for Ewhere
E: Into<Expr>,
impl<E> Assignable for Ewhere E: Into<Expr>,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more