pub trait Type: Sized {
// Required methods
fn from_chunks(chunks: ChunksRef<'_>) -> Result<Self, TypeError>;
fn to_chunks(&self) -> Chunks;
}
Expand description
Convert Bib(La)TeX data types from and to chunk slices.
Required Methods§
sourcefn from_chunks(chunks: ChunksRef<'_>) -> Result<Self, TypeError>
fn from_chunks(chunks: ChunksRef<'_>) -> Result<Self, TypeError>
Parse the type from chunks.
Object Safety§
This trait is not object safe.