[][src]Struct crfsuite::Model

pub struct Model(_);

The model

Implementations

impl Model[src]

pub fn from_file(name: &str) -> Result<Self>[src]

Open a model file

pub fn from_memory(bytes: &[u8]) -> Result<Self>[src]

Create an instance of a model object from a model in memory

pub fn tagger(&self) -> Result<Tagger<'_>>[src]

pub fn dump(&self, fd: RawFd) -> Result<()>[src]

Print the model in human-readable format

Parameters

file: Something convertable to file descriptor

pub fn dump_file<T: AsRef<Path>>(&self, path: T) -> Result<()>[src]

Print the model in human-readable format to file

Parameters

path: Dump file path

Trait Implementations

impl Debug for Model[src]

impl Drop for Model[src]

impl Send for Model[src]

impl Sync for Model[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.