[−][src]Struct kul::datum::DatumBox
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 Box
ed 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
fn try_replace(
this: &mut Self,
val: Self::Target
) -> Result<Self::Target, Self::Target>
[src]
this: &mut Self,
val: Self::Target
) -> Result<Self::Target, Self::Target>
fn set(this: &mut Self, val: Self::Target)
[src]
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]
fn eq(&self, other: &DatumBox<TT, ET>) -> bool
[src]
fn ne(&self, other: &DatumBox<TT, ET>) -> bool
[src]
impl<TT: Clone, ET: Clone> Clone for DatumBox<TT, ET>
[src]
fn clone(&self) -> 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<__HTTET: Hasher>(&self, state: &mut __HTTET)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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.
fn deref(&self) -> &Self::Target
[src]
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,
ET: Send,
TT: Send,
impl<TT, ET> Sync for DatumBox<TT, ET> where
ET: Sync,
TT: Sync,
ET: Sync,
TT: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,