Struct r_cons_t

Source
#[repr(C)]
pub struct r_cons_t {
Show 66 fields pub context: *mut RConsContext, pub lastline: *mut c_char, pub is_html: bool, pub was_html: bool, pub lines: c_int, pub rows: c_int, pub echo: c_int, pub fps: c_int, pub columns: c_int, pub force_rows: c_int, pub force_columns: c_int, pub fix_rows: c_int, pub fix_columns: c_int, pub break_lines: bool, pub noflush: c_int, pub optimize: c_int, pub show_autocomplete_widget: bool, pub fdin: *mut FILE, pub fdout: c_int, pub teefile: *const c_char, pub user_fgets: Option<unsafe extern "C" fn(buf: *mut c_char, len: c_int) -> c_int>, pub event_resize: RConsEvent, pub event_data: *mut c_void, pub mouse_event: c_int, pub cb_editor: RConsEditorCallback, pub cb_break: RConsBreakCallback, pub cb_sleep_begin: RConsSleepBeginCallback, pub cb_sleep_end: RConsSleepEndCallback, pub cb_click: RConsClickCallback, pub cb_task_oneshot: RConsQueueTaskOneshot, pub cb_fkey: RConsFunctionKey, pub user: *mut c_void, pub term_raw: termios, pub term_buf: termios, pub num: *mut RNum, pub pager: *mut c_char, pub blankline: c_int, pub highlight: *mut c_char, pub enable_highlight: bool, pub null: c_int, pub mouse: c_int, pub is_wine: c_int, pub line: *mut r_line_t, pub vline: *mut *const c_char, pub refcnt: c_int, pub newline: bool, pub vtmode: c_int, pub flush: bool, pub use_utf8: bool, pub use_utf8_curvy: bool, pub dotted_lines: bool, pub linesleep: c_int, pub pagesize: c_int, pub break_word: *mut c_char, pub break_word_len: c_int, pub timeout: c_ulonglong, pub grep_color: bool, pub grep_highlight: bool, pub use_tts: bool, pub filter: bool, pub rgbstr: Option<unsafe extern "C" fn(str_: *mut c_char, sz: size_t, addr: c_ulonglong) -> *mut c_char>, pub click_set: bool, pub click_x: c_int, pub click_y: c_int, pub show_vals: bool, pub cpos: RConsCursorPos,
}

Fields§

§context: *mut RConsContext§lastline: *mut c_char§is_html: bool§was_html: bool§lines: c_int§rows: c_int§echo: c_int§fps: c_int§columns: c_int§force_rows: c_int§force_columns: c_int§fix_rows: c_int§fix_columns: c_int§break_lines: bool§noflush: c_int§optimize: c_int§show_autocomplete_widget: bool§fdin: *mut FILE§fdout: c_int§teefile: *const c_char§user_fgets: Option<unsafe extern "C" fn(buf: *mut c_char, len: c_int) -> c_int>§event_resize: RConsEvent§event_data: *mut c_void§mouse_event: c_int§cb_editor: RConsEditorCallback§cb_break: RConsBreakCallback§cb_sleep_begin: RConsSleepBeginCallback§cb_sleep_end: RConsSleepEndCallback§cb_click: RConsClickCallback§cb_task_oneshot: RConsQueueTaskOneshot§cb_fkey: RConsFunctionKey§user: *mut c_void§term_raw: termios§term_buf: termios§num: *mut RNum§pager: *mut c_char§blankline: c_int§highlight: *mut c_char§enable_highlight: bool§null: c_int§mouse: c_int§is_wine: c_int§line: *mut r_line_t§vline: *mut *const c_char§refcnt: c_int§newline: bool§vtmode: c_int§flush: bool§use_utf8: bool§use_utf8_curvy: bool§dotted_lines: bool§linesleep: c_int§pagesize: c_int§break_word: *mut c_char§break_word_len: c_int§timeout: c_ulonglong§grep_color: bool§grep_highlight: bool§use_tts: bool§filter: bool§rgbstr: Option<unsafe extern "C" fn(str_: *mut c_char, sz: size_t, addr: c_ulonglong) -> *mut c_char>§click_set: bool§click_x: c_int§click_y: c_int§show_vals: bool§cpos: RConsCursorPos

Trait Implementations§

Source§

impl Clone for r_cons_t

Source§

fn clone(&self) -> r_cons_t

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 r_cons_t

Source§

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

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

impl Copy for r_cons_t

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.