Struct erg_compiler::hir::VarSignature
source · [−]pub struct VarSignature {
pub ident: Identifier,
pub t: Type,
}
Fields
ident: Identifier
t: Type
Implementations
sourceimpl VarSignature
impl VarSignature
pub const fn new(ident: Identifier, t: Type) -> Self
pub fn inspect(&self) -> &Str
pub fn vis(&self) -> Visibility
Trait Implementations
sourceimpl Clone for VarSignature
impl Clone for VarSignature
sourcefn clone(&self) -> VarSignature
fn clone(&self) -> VarSignature
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 VarSignature
impl Debug for VarSignature
sourceimpl Display for VarSignature
impl Display for VarSignature
sourceimpl HasType for VarSignature
impl HasType for VarSignature
fn ref_t(&self) -> &Type
fn ref_mut_t(&mut self) -> &mut Type
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, Global>
fn lhs_t(&self) -> &Type
fn rhs_t(&self) -> &Type
sourceimpl Hash for VarSignature
impl Hash for VarSignature
sourceimpl Locational for VarSignature
impl Locational for VarSignature
sourceimpl NestedDisplay for VarSignature
impl NestedDisplay for VarSignature
Auto Trait Implementations
impl !RefUnwindSafe for VarSignature
impl !Send for VarSignature
impl !Sync for VarSignature
impl Unpin for VarSignature
impl !UnwindSafe for VarSignature
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