Struct crfsuite_sys::tag_crfsuite_model
[−]
[src]
#[repr(C)]pub struct tag_crfsuite_model { pub internal: *mut c_void, pub nref: c_int, pub addref: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t) -> c_int>, pub release: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t) -> c_int>, pub get_tagger: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_tagger: *mut *mut crfsuite_tagger_t) -> c_int>, pub get_labels: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_labels: *mut *mut crfsuite_dictionary_t) -> c_int>, pub get_attrs: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_attrs: *mut *mut crfsuite_dictionary_t) -> c_int>, pub dump: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, fpo: *mut FILE) -> c_int>, }
Fields
internal: *mut c_void
Pointer to the internal data (internal use only).
nref: c_int
Reference counter (internal use only).
addref: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t) -> c_int>
Increment the reference counter.
model
The pointer to this model instance.
Returns the reference count after this increment.
release: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t) -> c_int>
Decrement the reference counter.
model
The pointer to this model instance.
Returns the reference count after this operation.
get_tagger: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_tagger: *mut *mut crfsuite_tagger_t) -> c_int>
Obtain the pointer to crfsuite_tagger_t interface.
model
The pointer to this model instance.ptr_tagger
The pointer that receives acrfsuite_tagger_t
pointer.
Returns the status code.
get_labels: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_labels: *mut *mut crfsuite_dictionary_t) -> c_int>
Obtain the pointer to crfsuite_dictionary_t interface for labels.
model
The pointer to this model instance.ptr_labels
The pointer that receives a crfsuite_dictionary_t pointer.
Returns the status code.
get_attrs: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, ptr_attrs: *mut *mut crfsuite_dictionary_t) -> c_int>
Obtain the pointer to crfsuite_dictionary_t interface for attributes.
model
The pointer to this model instance.ptr_attrs
The pointer that receives a crfsuite_dictionary_t pointer.
Returns the status code.
dump: Option<unsafe extern "C" fn(model: *mut crfsuite_model_t, fpo: *mut FILE) -> c_int>
Print the model in human-readable format.
model
The pointer to this model instance.fpo
The FILE* pointer.
Returns the status code.
Trait Implementations
impl Debug for tag_crfsuite_model
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for tag_crfsuite_model
[src]
impl Clone for tag_crfsuite_model
[src]
fn clone(&self) -> tag_crfsuite_model
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more