pub struct StructField<'a> {
pub id: Option<Id<'a>>,
pub mutable: bool,
pub ty: StorageType<'a>,
}Expand description
A field of a struct type.
Fields§
§id: Option<Id<'a>>An optional identifier for name resolution.
mutable: boolWhether this field may be mutated or not.
ty: StorageType<'a>The storage type stored in this field.
Trait Implementations§
Source§impl<'a> Clone for StructField<'a>
impl<'a> Clone for StructField<'a>
Source§fn clone(&self) -> StructField<'a>
fn clone(&self) -> StructField<'a>
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<'a> Debug for StructField<'a>
impl<'a> Debug for StructField<'a>
Source§impl From<&StructField<'_>> for FieldType
impl From<&StructField<'_>> for FieldType
Source§fn from(f: &StructField<'_>) -> FieldType
fn from(f: &StructField<'_>) -> FieldType
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for StructField<'a>
impl<'a> RefUnwindSafe for StructField<'a>
impl<'a> Send for StructField<'a>
impl<'a> Sync for StructField<'a>
impl<'a> Unpin for StructField<'a>
impl<'a> UnwindSafe for StructField<'a>
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