Struct sway_core::language::ty::TyStructField
source · pub struct TyStructField {
pub name: Ident,
pub type_id: TypeId,
pub initial_type_id: TypeId,
pub span: Span,
pub type_span: Span,
pub attributes: AttributesMap,
}
Fields
name: Ident
type_id: TypeId
initial_type_id: TypeId
span: Span
type_span: Span
attributes: AttributesMap
Trait Implementations
sourceimpl Clone for TyStructField
impl Clone for TyStructField
sourcefn clone(&self) -> TyStructField
fn clone(&self) -> TyStructField
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 TyStructField
impl Debug for TyStructField
sourceimpl Hash for TyStructField
impl Hash for TyStructField
sourceimpl PartialEq<TyStructField> for TyStructField
impl PartialEq<TyStructField> for TyStructField
impl Eq for TyStructField
impl StructuralEq for TyStructField
Auto Trait Implementations
impl RefUnwindSafe for TyStructField
impl Send for TyStructField
impl Sync for TyStructField
impl Unpin for TyStructField
impl UnwindSafe for TyStructField
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.