#[repr(C)]
pub struct cst_tokenstream_struct {
Show 30 fields pub fd: cst_file, pub file_pos: c_int, pub line_number: c_int, pub eof_flag: c_int, pub string_buffer: *mut cst_string, pub current_char: c_int, pub token_pos: c_int, pub ws_max: c_int, pub whitespace: *mut cst_string, pub prep_max: c_int, pub prepunctuation: *mut cst_string, pub token_max: c_int, pub token: *mut cst_string, pub postp_max: c_int, pub postpunctuation: *mut cst_string, pub tags: *mut cst_features, pub utf8_explode_mode: c_int, pub streamtype_data: *mut c_void, pub p_whitespacesymbols: *const cst_string, pub p_singlecharsymbols: *const cst_string, pub p_prepunctuationsymbols: *const cst_string, pub p_postpunctuationsymbols: *const cst_string, pub charclass: [cst_string; 256], pub open: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct, filename: *const c_char) -> c_int>, pub close: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct)>, pub eof: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>, pub seek: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct, pos: c_int) -> c_int>, pub tell: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>, pub size: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>, pub getc: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>,
}

Fields

fd: cst_filefile_pos: c_intline_number: c_inteof_flag: c_intstring_buffer: *mut cst_stringcurrent_char: c_inttoken_pos: c_intws_max: c_intwhitespace: *mut cst_stringprep_max: c_intprepunctuation: *mut cst_stringtoken_max: c_inttoken: *mut cst_stringpostp_max: c_intpostpunctuation: *mut cst_stringtags: *mut cst_featuresutf8_explode_mode: c_intstreamtype_data: *mut c_voidp_whitespacesymbols: *const cst_stringp_singlecharsymbols: *const cst_stringp_prepunctuationsymbols: *const cst_stringp_postpunctuationsymbols: *const cst_stringcharclass: [cst_string; 256]open: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct, filename: *const c_char) -> c_int>close: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct)>eof: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>seek: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct, pos: c_int) -> c_int>tell: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>size: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>getc: Option<unsafe extern "C" fn(ts: *mut cst_tokenstream_struct) -> c_int>

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.