Struct erg_compiler::hir::TypeAscription  
source · pub struct TypeAscription {
    pub expr: Box<Expr>,
    pub spec: TypeSpecWithOp,
}Fields§
§expr: Box<Expr>§spec: TypeSpecWithOpImplementations§
source§impl TypeAscription
 
impl TypeAscription
pub fn new(expr: Expr, spec: TypeSpecWithOp) -> Self
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 HasType for TypeAscription
 
impl HasType for TypeAscription
fn ref_t(&self) -> &Type
source§fn ref_mut_t(&mut self) -> &mut Type
 
fn ref_mut_t(&mut self) -> &mut Type
x.ref_mut_t() may panic, in which case x is Call and x.ref_t() == Type::Failure.fn signature_t(&self) -> Option<&Type>
fn signature_mut_t(&mut self) -> Option<&mut Type>
fn t(&self) -> Type
fn inner_ts(&self) -> Vec<Type>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
source§impl Hash for TypeAscription
 
impl Hash for TypeAscription
source§impl Locational for TypeAscription
 
impl Locational for TypeAscription
source§impl NestedDisplay for TypeAscription
 
impl NestedDisplay for TypeAscription
source§impl NoTypeDisplay for TypeAscription
 
impl NoTypeDisplay for TypeAscription
fn to_string_notype(&self) -> String
source§impl PartialEq<TypeAscription> for TypeAscription
 
impl PartialEq<TypeAscription> 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<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