[][src]Struct abi_stable::type_layout::TLFunctionSlice

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

A slice of functions from a TLFunctions.

Methods

impl TLFunctionSlice[src]

pub const fn empty(shared_vars: &'static SharedVars) -> Self[src]

Constructs an empty TLFunctionSlice.

pub fn for_field(
    i: usize,
    functions: Option<&'static TLFunctions>,
    shared_vars: &'static SharedVars
) -> Self
[src]

Constructs the TLFunctionSlice for the function pointers in the ith field.

pub const fn shared_vars(&self) -> &'static SharedVars[src]

Gets the &'static SharedVars associated with this slice.

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

Returns an iterator over the TLFunctions in the slice.

pub fn get(self, index: usize) -> Option<TLFunction>[src]

Gets a TLFunction at the index.This returns None if index is outside the slice.

pub fn index(self, index: usize) -> TLFunction[src]

Gets a TLFunction at the index.

Panic

This panics if the TLFunction is outside the slice.

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

Gets the length of this slice.

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

Gets whether this slice is empty.

Trait Implementations

impl Clone for TLFunctionSlice[src]

impl Copy for TLFunctionSlice[src]

impl Debug for TLFunctionSlice[src]

impl Eq for TLFunctionSlice[src]

impl GetStaticEquivalent_ for TLFunctionSlice[src]

type StaticEquivalent = _static_TLFunctionSlice

impl IntoIterator for TLFunctionSlice[src]

type IntoIter = TLFunctionIter

Which kind of iterator are we turning this into?

type Item = TLFunction

The type of the elements being iterated over.

impl PartialEq<TLFunctionSlice> for TLFunctionSlice[src]

impl SharedStableAbi for TLFunctionSlice[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

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

type RBorrowed = &'a T

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

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

impl<T, U> Into<U> for T where
    U: From<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> SelfOps for T where
    T: ?Sized
[src]

impl<This> StableAbi for This where
    This: SharedStableAbi<Kind = ValueKind>, 
[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