pub struct ParserPart<'a> { /* private fields */ }Expand description
The parser part of a model file, read on the bytes of the file: the
classifier of the parser that
Model::parser gives.
Implementations§
Source§impl ParserPart<'_>
impl ParserPart<'_>
Sourcepub fn feature_count(&self) -> usize
pub fn feature_count(&self) -> usize
Sourcepub fn pair_count(&self) -> usize
pub fn pair_count(&self) -> usize
The number of weights of pairs of the part: of pairs for an exact table, of places for a hashed one.
§Returns
The number of weights, those that are 0 included.
Sourcepub fn quantization(&self) -> Quantization
pub fn quantization(&self) -> Quantization
Trait Implementations§
Source§impl Classifier for ParserPart<'_>
impl Classifier for ParserPart<'_>
Source§impl<'a> Clone for ParserPart<'a>
impl<'a> Clone for ParserPart<'a>
impl<'a> Copy for ParserPart<'a>
Auto Trait Implementations§
impl<'a> Forget for ParserPart<'a>
impl<'a> Freeze for ParserPart<'a>
impl<'a> Move for ParserPart<'a>
impl<'a> RefUnwindSafe for ParserPart<'a>
impl<'a> Send for ParserPart<'a>
impl<'a> Sync for ParserPart<'a>where
RawVecInner: Sync,
impl<'a> Unpin for ParserPart<'a>
impl<'a> UnsafeUnpin for ParserPart<'a>
impl<'a> UnwindSafe for ParserPart<'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