Struct repc_impl::layout::Record [−][src]
A record.
This corresponds to a struct or a union in C.
Example
#pragma pack(8)
struct {
int i __attribute__((aligned(16)));
char :1;
};
Type::<()> { layout: (), annotations: vec!(Annotation::PragmaPack(64)), variant: TypeVariant::Record(Record::<()> { kind: RecordKind::Struct, fields: vec![ RecordField { layout: None, annotations: vec!(Annotation::Align(Some(128))), named: true, bit_width: None, ty: Type { layout: (), annotations: vec!(), variant: TypeVariant::Builtin(BuiltinType::Int), }, }, RecordField { layout: None, annotations: vec!(), named: false, bit_width: Some(1), ty: Type { layout: (), annotations: vec!(), variant: TypeVariant::Builtin(BuiltinType::Char), }, }, ], }), };
Fields
kind: RecordKindThe type of the record. Struct or union.
fields: Vec<RecordField<I>>The fields of the record.
Trait Implementations
impl<I: Clone + Layout> Clone for Record<I>[src]
impl<I: Debug + Layout> Debug for Record<I>[src]
impl<I: Eq + Layout> Eq for Record<I>[src]
impl<I: PartialEq + Layout> PartialEq<Record<I>> for Record<I>[src]
impl<I: Layout> StructuralEq for Record<I>[src]
impl<I: Layout> StructuralPartialEq for Record<I>[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for Record<I> where
<I as Layout>::FieldLayout: RefUnwindSafe,
<I as Layout>::OpaqueLayout: RefUnwindSafe,
<I as Layout>::TypeLayout: RefUnwindSafe, [src]
<I as Layout>::FieldLayout: RefUnwindSafe,
<I as Layout>::OpaqueLayout: RefUnwindSafe,
<I as Layout>::TypeLayout: RefUnwindSafe,
impl<I> Send for Record<I> where
<I as Layout>::FieldLayout: Send,
<I as Layout>::OpaqueLayout: Send,
<I as Layout>::TypeLayout: Send, [src]
<I as Layout>::FieldLayout: Send,
<I as Layout>::OpaqueLayout: Send,
<I as Layout>::TypeLayout: Send,
impl<I> Sync for Record<I> where
<I as Layout>::FieldLayout: Sync,
<I as Layout>::OpaqueLayout: Sync,
<I as Layout>::TypeLayout: Sync, [src]
<I as Layout>::FieldLayout: Sync,
<I as Layout>::OpaqueLayout: Sync,
<I as Layout>::TypeLayout: Sync,
impl<I> Unpin for Record<I> where
<I as Layout>::FieldLayout: Unpin,
<I as Layout>::OpaqueLayout: Unpin,
<I as Layout>::TypeLayout: Unpin, [src]
<I as Layout>::FieldLayout: Unpin,
<I as Layout>::OpaqueLayout: Unpin,
<I as Layout>::TypeLayout: Unpin,
impl<I> UnwindSafe for Record<I> where
<I as Layout>::FieldLayout: UnwindSafe,
<I as Layout>::OpaqueLayout: UnwindSafe,
<I as Layout>::TypeLayout: UnwindSafe, [src]
<I as Layout>::FieldLayout: UnwindSafe,
<I as Layout>::OpaqueLayout: UnwindSafe,
<I as Layout>::TypeLayout: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,