[][src]Struct kul::datum::DatumBox

pub struct DatumBox<TT, ET>(pub Box<BoxDatum<TT, ET>>);

This wrapper allows the needed recursive type definition for Box to be used as the Datum reference type.

Methods

impl<TT, ET> DatumBox<TT, ET>[src]

pub fn new(val: BoxDatum<TT, ET>) -> Self[src]

Make a Boxed Datum with value from the given argument.

Trait Implementations

impl<TT, ET> Algo1DatumRef for DatumBox<TT, ET>[src]

This allows using the custom drop algorithm

impl<TT, ET> Drop for DatumBox<TT, ET>[src]

Use algorithm #1 for dropping, to avoid extensive drop recursion.

impl<TT: PartialEq, ET: PartialEq> PartialEq<DatumBox<TT, ET>> for DatumBox<TT, ET>[src]

impl<TT: Clone, ET: Clone> Clone for DatumBox<TT, ET>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<TT: Eq, ET: Eq> Eq for DatumBox<TT, ET>[src]

impl<TT, ET> DerefMut for DatumBox<TT, ET>[src]

Not strictly required but useful.

impl<TT: Debug, ET: Debug> Debug for DatumBox<TT, ET>[src]

impl<TT: Hash, ET: Hash> Hash for DatumBox<TT, ET>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<TT, ET> Deref for DatumBox<TT, ET>[src]

Required by DerefTryMut.

type Target = BoxDatum<TT, ET>

The resulting type after dereferencing.

impl<TT, ET> DerefTryMut for DatumBox<TT, ET>[src]

This allows Box to be used as the Datum reference type.

Auto Trait Implementations

impl<TT, ET> Send for DatumBox<TT, ET> where
    ET: Send,
    TT: Send

impl<TT, ET> Sync for DatumBox<TT, ET> where
    ET: Sync,
    TT: Sync

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]