[][src]Struct openssl::ex_data::Index

pub struct Index<T, U>(_, _);

A slot in a type's "extra data" structure.

It is parameterized over the type containing the extra data as well as the type of the data in the slot.

Implementations

impl<T, U> Index<T, U>[src]

pub unsafe fn from_raw(idx: c_int) -> Index<T, U>[src]

Creates an Index from a raw integer index.

Safety

The caller must ensure that the index correctly maps to a U value stored in a T.

pub fn as_raw(&self) -> c_int[src]

Trait Implementations

impl<T, U> Clone for Index<T, U>[src]

impl<T, U> Copy for Index<T, U>[src]

Auto Trait Implementations

impl<T, U> RefUnwindSafe for Index<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> Send for Index<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for Index<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for Index<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> UnwindSafe for Index<T, U> where
    T: UnwindSafe,
    U: UnwindSafe

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.