pub struct ChunkerPart<'a> { /* private fields */ }Expand description
The chunker part of a model file, read on the bytes of the file.
It is what Model::chunker gives a Chunker to read.
Implementations§
Source§impl ChunkerPart<'_>
impl ChunkerPart<'_>
Sourcepub fn feature_count(&self) -> usize
pub fn feature_count(&self) -> usize
Sourcepub fn weight_count(&self) -> usize
pub fn weight_count(&self) -> usize
The number of weights of the part that are not 0: those of the feature strings and those of the transitions.
§Returns
The number of weights.
Trait Implementations§
Source§impl ChunkerData for ChunkerPart<'_>
impl ChunkerData for ChunkerPart<'_>
Source§impl<'a> Clone for ChunkerPart<'a>
impl<'a> Clone for ChunkerPart<'a>
impl<'a> Copy for ChunkerPart<'a>
Auto Trait Implementations§
impl<'a> Forget for ChunkerPart<'a>
impl<'a> Freeze for ChunkerPart<'a>
impl<'a> Move for ChunkerPart<'a>
impl<'a> RefUnwindSafe for ChunkerPart<'a>
impl<'a> Send for ChunkerPart<'a>
impl<'a> Sync for ChunkerPart<'a>
impl<'a> Unpin for ChunkerPart<'a>
impl<'a> UnsafeUnpin for ChunkerPart<'a>
impl<'a> UnwindSafe for ChunkerPart<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more