Struct repc::layout::RecordField [−][src]
A field of a record.
Fields
layout: Option<<I as Layout>::FieldLayout>
The layout of the field.
This is None
for unnamed fields.
annotations: Vec<Annotation, Global>
The annotations on this field.
named: bool
Whether the field is named.
An unnamed field in C is always a bit-field and is declared like T : N
where
T
is the type of the field and N
is the width of the bit-field.
bit_width: Option<u64>
If this is a bit-field, the width of the field.
The field is recognized as a bit-field if and only if this is Some
.
ty: Type<I>
The type of the field.
Implementations
impl<I> RecordField<I> where
I: Layout,
[src]
I: Layout,
pub fn into<J>(self) -> RecordField<J> where
J: Layout,
<I as Layout>::TypeLayout: Into<<J as Layout>::TypeLayout>,
<I as Layout>::FieldLayout: Into<<J as Layout>::FieldLayout>,
<I as Layout>::OpaqueLayout: Into<<J as Layout>::OpaqueLayout>,
[src]
J: Layout,
<I as Layout>::TypeLayout: Into<<J as Layout>::TypeLayout>,
<I as Layout>::FieldLayout: Into<<J as Layout>::FieldLayout>,
<I as Layout>::OpaqueLayout: Into<<J as Layout>::OpaqueLayout>,
Returns the identical record field with the Layout
converted.
Trait Implementations
impl<I> Clone for RecordField<I> where
I: Layout + Clone,
<I as Layout>::FieldLayout: Clone,
[src]
I: Layout + Clone,
<I as Layout>::FieldLayout: Clone,
pub fn clone(&self) -> RecordField<I>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I> Debug for RecordField<I> where
I: Layout + Debug,
<I as Layout>::FieldLayout: Debug,
[src]
I: Layout + Debug,
<I as Layout>::FieldLayout: Debug,
impl<I> Eq for RecordField<I> where
I: Layout + Eq,
<I as Layout>::FieldLayout: Eq,
[src]
I: Layout + Eq,
<I as Layout>::FieldLayout: Eq,
impl<I> PartialEq<RecordField<I>> for RecordField<I> where
I: Layout + PartialEq<I>,
<I as Layout>::FieldLayout: PartialEq<<I as Layout>::FieldLayout>,
[src]
I: Layout + PartialEq<I>,
<I as Layout>::FieldLayout: PartialEq<<I as Layout>::FieldLayout>,
pub fn eq(&self, other: &RecordField<I>) -> bool
[src]
pub fn ne(&self, other: &RecordField<I>) -> bool
[src]
impl<I> StructuralEq for RecordField<I> where
I: Layout,
[src]
I: Layout,
impl<I> StructuralPartialEq for RecordField<I> where
I: Layout,
[src]
I: Layout,
Auto Trait Implementations
impl<I> RefUnwindSafe for RecordField<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 RecordField<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 RecordField<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 RecordField<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 RecordField<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>,