[][src]Struct abi_stable::type_layout::TLFields

#[repr(C)]
pub struct TLFields { /* fields omitted */ }

The layout of all field in a type definition.

Methods

impl TLFields[src]

pub fn from_fields(
    comp_fields: &'static [CompTLField],
    shared_vars: &'static SharedVars
) -> Self
[src]

Constructs a TLFields from the compressed fields,without any functions.

pub fn len(&self) -> usize[src]

The ammount of fields this represents

pub fn is_empty(&self) -> bool[src]

Whether this contains any fields

pub fn get(&self, i: usize) -> Option<TLField>[src]

Gets the ith expanded field.Returns None there is no ith field.

Important traits for TLFieldsIterator
pub fn iter(&self) -> TLFieldsIterator[src]

Gets an iterator over the expanded fields.

pub fn to_vec(&self) -> Vec<TLField>[src]

Collects the expanded fields into a Vec<TLField>.

Trait Implementations

impl GetStaticEquivalent_ for TLFields[src]

type StaticEquivalent = _static_TLFields

impl SharedStableAbi for TLFields[src]

type IsNonZeroType = False

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

type Kind = __ValueKind

The kind of abi stability of this type,there are 2: Read more

impl IntoIterator for TLFields[src]

type IntoIter = TLFieldsIterator

Which kind of iterator are we turning this into?

type Item = TLField

The type of the elements being iterated over.

impl Clone for TLFields[src]

impl Copy for TLFields[src]

impl Eq for TLFields[src]

impl PartialEq<TLFields> for TLFields[src]

impl Display for TLFields[src]

impl Debug for TLFields[src]

Auto Trait Implementations

impl Send for TLFields

impl Sync for TLFields

impl Unpin for TLFields

impl !UnwindSafe for TLFields

impl !RefUnwindSafe for TLFields

Blanket Implementations

impl<This> GetConstGenericVTable for This where
    This: StableAbi + Eq + PartialEq<This> + Debug + Send + Sync
[src]

impl<This> StableAbi for This where
    This: SharedStableAbi<Kind = ValueKind>, 
[src]

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

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

type ROwned = T

type RBorrowed = &'a T

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

type Type = T

The same type as Self. Read more

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

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.