pub struct AggregateField {
pub name: String,
pub type_id: TypeId,
pub offset: usize,
}Expand description
One field of an aggregate or struct type.
Field names are part of aggregate identity. For structural aggregates the
slots are addressed by numeric index and offset is informational (the
running byte sum); for nominal StructTypes offset is the field’s real
byte offset and is the key a Gep resolves on.
Fields§
§name: String§type_id: TypeId§offset: usizeByte offset of this field within its containing aggregate/struct.
Implementations§
Trait Implementations§
Source§impl Clone for AggregateField
impl Clone for AggregateField
Source§fn clone(&self) -> AggregateField
fn clone(&self) -> AggregateField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AggregateField
impl Debug for AggregateField
Source§impl<'de> Deserialize<'de> for AggregateField
impl<'de> Deserialize<'de> for AggregateField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AggregateField
Source§impl Hash for AggregateField
impl Hash for AggregateField
Source§impl PartialEq for AggregateField
impl PartialEq for AggregateField
Source§impl Serialize for AggregateField
impl Serialize for AggregateField
impl StructuralPartialEq for AggregateField
Auto Trait Implementations§
impl Freeze for AggregateField
impl RefUnwindSafe for AggregateField
impl Send for AggregateField
impl Sync for AggregateField
impl Unpin for AggregateField
impl UnsafeUnpin for AggregateField
impl UnwindSafe for AggregateField
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