Enum allsorts_no_std::cff::MaybeOwnedIndex[][src]

pub enum MaybeOwnedIndex<'a> {
    Borrowed(Index<'a>),
    Owned(Index),
}

Variants

Borrowed(Index<'a>)
Owned(Index)

Implementations

impl<'a> MaybeOwnedIndex<'a>[src]

pub fn iter(&'a self) -> MaybeOwnedIndexIterator<'a>

Notable traits for MaybeOwnedIndexIterator<'a>

impl<'a> Iterator for MaybeOwnedIndexIterator<'a> type Item = &'a [u8];
[src]

pub fn read_object(&self, index: usize) -> Option<&[u8]>[src]

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

Returns the number of items in self.

Trait Implementations

impl<'a> Clone for MaybeOwnedIndex<'a>[src]

impl<'a> WriteBinary<&'_ MaybeOwnedIndex<'a>> for MaybeOwnedIndex<'a>[src]

type Output = ()

The type of the value returned by write.

Auto Trait Implementations

impl<'a> RefUnwindSafe for MaybeOwnedIndex<'a>

impl<'a> Send for MaybeOwnedIndex<'a>

impl<'a> Sync for MaybeOwnedIndex<'a>

impl<'a> Unpin for MaybeOwnedIndex<'a>

impl<'a> UnwindSafe for MaybeOwnedIndex<'a>

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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, HostType> WriteBinaryDep<HostType> for T where
    T: WriteBinary<HostType>, 
[src]

type Args = ()

The type of the arguments supplied to write_dep.

type Output = <T as WriteBinary<HostType>>::Output

The type of the value returned by write_dep.