#[repr(C)]pub struct crfsuite_instance_t {
pub num_items: c_int,
pub cap_items: c_int,
pub items: *mut crfsuite_item_t,
pub labels: *mut c_int,
pub weight: floatval_t,
pub group: c_int,
}Expand description
An instance (sequence of items and labels). An instance consists of a sequence of items and labels.
Fields§
§num_items: c_intNumber of items/labels in the sequence.
cap_items: c_intMaximum number of items/labels (internal use).
items: *mut crfsuite_item_tArray of the item sequence.
labels: *mut c_intArray of the label sequence.
weight: floatval_tInstance weight.
group: c_intGroup ID of the instance.
Trait Implementations§
Source§impl Clone for crfsuite_instance_t
impl Clone for crfsuite_instance_t
Source§fn clone(&self) -> crfsuite_instance_t
fn clone(&self) -> crfsuite_instance_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for crfsuite_instance_t
impl Debug for crfsuite_instance_t
impl Copy for crfsuite_instance_t
Auto Trait Implementations§
impl Freeze for crfsuite_instance_t
impl RefUnwindSafe for crfsuite_instance_t
impl !Send for crfsuite_instance_t
impl !Sync for crfsuite_instance_t
impl Unpin for crfsuite_instance_t
impl UnwindSafe for crfsuite_instance_t
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