Enum repc_impl::layout::TypeVariant [−][src]
An enum of all available types.
Variants
Builtin(BuiltinType)A builtin type.
Record(Record<I>)A record. Struct or union.
A typedef.
The box contains the target type.
Array(Array<I>)An array.
An enum.
The vector contains the values of the variants.
Opaque(I::OpaqueLayout)An opaque type.
This does not correspond to anything in C. It is useful if the layout of a nested type is already known and should not be recomputed. On all supported targets, substituting a type for the opaque type with the same layout leads to the same layout for the containing type.
Implementations
impl<I: Layout> TypeVariant<I>[src]
pub fn into<J: Layout>(self) -> TypeVariant<J> where
I::TypeLayout: Into<J::TypeLayout>,
I::FieldLayout: Into<J::FieldLayout>,
I::OpaqueLayout: Into<J::OpaqueLayout>, [src]
I::TypeLayout: Into<J::TypeLayout>,
I::FieldLayout: Into<J::FieldLayout>,
I::OpaqueLayout: Into<J::OpaqueLayout>,
Returns the identical type variant with the Layout converted.
Trait Implementations
impl<I: Clone + Layout> Clone for TypeVariant<I> where
I::OpaqueLayout: Clone, [src]
I::OpaqueLayout: Clone,
fn clone(&self) -> TypeVariant<I>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<I: Debug + Layout> Debug for TypeVariant<I> where
I::OpaqueLayout: Debug, [src]
I::OpaqueLayout: Debug,
impl<I: Eq + Layout> Eq for TypeVariant<I> where
I::OpaqueLayout: Eq, [src]
I::OpaqueLayout: Eq,
impl<I: PartialEq + Layout> PartialEq<TypeVariant<I>> for TypeVariant<I> where
I::OpaqueLayout: PartialEq, [src]
I::OpaqueLayout: PartialEq,
fn eq(&self, other: &TypeVariant<I>) -> bool[src]
fn ne(&self, other: &TypeVariant<I>) -> bool[src]
impl<I: Layout> StructuralEq for TypeVariant<I>[src]
impl<I: Layout> StructuralPartialEq for TypeVariant<I>[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for TypeVariant<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 TypeVariant<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 TypeVariant<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 TypeVariant<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 TypeVariant<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>,