[][src]Struct abi_stable::type_layout::CompFieldAccessor

#[repr(transparent)]pub struct CompFieldAccessor(_);

A compressed field accessor,represented as 3 bits inside of a CompTLField.

Implementations

impl CompFieldAccessor[src]

pub const DIRECT: Self[src]

Equivalent to the FieldAccessor::Direct variant.

pub const METHOD: Self[src]

Equivalent to the FieldAccessor::Method variant.

pub const METHOD_NAMED: Self[src]

Equivalent to the FieldAccessor::MethodNamed variant, in which the name is stored within SharedVars after the name of the field this is an accessor for.

pub const METHOD_OPTION: Self[src]

Equivalent to the FieldAccessor::MethodOption variant.

pub const OPAQUE: Self[src]

Equivalent to the FieldAccessor::Opaque variant.

impl CompFieldAccessor[src]

pub const BIT_SIZE: u32[src]

The amount of bits used to represent a CompFieldAccessor.

pub const fn to_u3(self) -> u8[src]

Converts this CompFieldAccessor into its representation.

pub const fn from_u3(n: u8) -> Self[src]

Constructs this CompFieldAccessor from its representation.

impl CompFieldAccessor[src]

pub fn expand(self, string: &'static str) -> Option<FieldAccessor>[src]

Expands this CompFieldAccessor into a FieldAccessor, using the string slice contained in the SharedVars of the TypeLayout this is stored inside of.

Trait Implementations

impl Clone for CompFieldAccessor[src]

impl Copy for CompFieldAccessor[src]

impl Debug for CompFieldAccessor[src]

impl Eq for CompFieldAccessor[src]

impl GetStaticEquivalent_ for CompFieldAccessor[src]

type StaticEquivalent = _static_CompFieldAccessor

impl PartialEq<CompFieldAccessor> for CompFieldAccessor[src]

impl StableAbi for CompFieldAccessor[src]

type IsNonZeroType = <u8 as __StableAbi>::IsNonZeroType

Whether this type has a single invalid bit-pattern. Read more

impl StructuralEq for CompFieldAccessor[src]

impl StructuralPartialEq for CompFieldAccessor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> BorrowOwned<'a> for T where
    T: 'a + Clone
[src]

type ROwned = T

The owned type, stored in RCow::Owned

type RBorrowed = &'a T

The borrowed type, stored in RCow::Borrowed

impl<T> From<T> for T[src]

impl<T> GetWithMetadata for T[src]

type ForSelf = WithMetadata_<T, T>

This is always WithMetadata_<Self, Self>

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SelfOps for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The error type returned when the conversion fails.

impl<T> TypeIdentity for T where
    T: ?Sized
[src]

type Type = T

The same type as Self. Read more

impl<This> ValidTag_Bounds for This where
    This: Debug + Clone + PartialEq<This>, 
[src]