[][src]Struct heed_types::OwnedType

pub struct OwnedType<T>(_);

Describes a type that is totally owned (doesn't hold any reference to the original slice).

If you need to store a type that doesn't depends on any memory alignment and that can be big it is recommended to use the UnalignedType.

The CowType is recommended for borrowed types (types that holds references to the original slice).

To store slices, you must look at the CowSlice, OwnedSlice or UnalignedSlice types.

Trait Implementations

impl<'a, T: 'a> BytesDecode<'a> for OwnedType<T> where
    T: FromBytes + Copy
[src]

type DItem = T

impl<'a, T: 'a> BytesEncode<'a> for OwnedType<T> where
    T: AsBytes
[src]

type EItem = T

impl<T> Send for OwnedType<T>[src]

impl<T> Sync for OwnedType<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for OwnedType<T> where
    T: RefUnwindSafe

impl<T> Unpin for OwnedType<T> where
    T: Unpin

impl<T> UnwindSafe for OwnedType<T> where
    T: 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, 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.