[−][src]Struct kul::parser::BoxDatumAllocator
A DatumAllocator
for generic Datum
types which allocates Datum
values in heap-allocated Box
es.
Trait Implementations
impl<TT, ET> Default for BoxDatumAllocator<TT, ET> where
TT: Text,
[src]
TT: Text,
Must implement this manually because deriving would place unwanted bounds on the type parameters.
impl<TT: Debug, ET: Debug> Debug for BoxDatumAllocator<TT, ET>
[src]
impl<TT, ET> DatumAllocator for BoxDatumAllocator<TT, ET> where
TT: Text,
[src]
TT: Text,
type TT = TT
The Text
type for our Datum
type. It should also implement TextConcat<Self>
so it supports concatenation which the parsing requires. Read more
type ET = ET
The "extra" type for our Datum
type.
type DR = DatumBox<Self::TT, Self::ET>
The type of references to Datum
s yielded by our parsing. Read more
fn new_datum(
&mut self,
from: BoxDatum<Self::TT, Self::ET>
) -> Result<Self::DR, AllocError>
[src]
&mut self,
from: BoxDatum<Self::TT, Self::ET>
) -> Result<Self::DR, AllocError>
Auto Trait Implementations
impl<TT, ET> !Send for BoxDatumAllocator<TT, ET>
impl<TT, ET> !Sync for BoxDatumAllocator<TT, ET>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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,