cst_tokenstream_struct

Struct cst_tokenstream_struct 

Source
#[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_file§file_pos: c_int§line_number: c_int§eof_flag: c_int§string_buffer: *mut cst_string§current_char: c_int§token_pos: c_int§ws_max: c_int§whitespace: *mut cst_string§prep_max: c_int§prepunctuation: *mut cst_string§token_max: c_int§token: *mut cst_string§postp_max: c_int§postpunctuation: *mut cst_string§tags: *mut cst_features§utf8_explode_mode: c_int§streamtype_data: *mut c_void§p_whitespacesymbols: *const cst_string§p_singlecharsymbols: *const cst_string§p_prepunctuationsymbols: *const cst_string§p_postpunctuationsymbols: *const cst_string§charclass: [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§

Source§

impl Clone for cst_tokenstream_struct

Source§

fn clone(&self) -> cst_tokenstream_struct

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for cst_tokenstream_struct

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for cst_tokenstream_struct

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.