Struct sway_core::language::ty::TyVariableDeclaration
source · pub struct TyVariableDeclaration {
pub name: Ident,
pub body: TyExpression,
pub mutability: VariableMutability,
pub type_ascription: TypeId,
pub type_ascription_span: Option<Span>,
}
Fields
name: Ident
body: TyExpression
mutability: VariableMutability
type_ascription: TypeId
type_ascription_span: Option<Span>
Trait Implementations
sourceimpl Clone for TyVariableDeclaration
impl Clone for TyVariableDeclaration
sourcefn clone(&self) -> TyVariableDeclaration
fn clone(&self) -> TyVariableDeclaration
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 TyVariableDeclaration
impl Debug for TyVariableDeclaration
sourceimpl PartialEq<TyVariableDeclaration> for TyVariableDeclaration
impl PartialEq<TyVariableDeclaration> for TyVariableDeclaration
impl Eq for TyVariableDeclaration
impl StructuralEq for TyVariableDeclaration
Auto Trait Implementations
impl RefUnwindSafe for TyVariableDeclaration
impl Send for TyVariableDeclaration
impl Sync for TyVariableDeclaration
impl Unpin for TyVariableDeclaration
impl UnwindSafe for TyVariableDeclaration
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.