Struct r_print_t

Source
#[repr(C)]
pub struct r_print_t {
Show 64 fields pub user: *mut c_void, pub iob: RIOBind, pub pava: bool, pub coreb: RCoreBind, pub cfmt: *const c_char, pub datefmt: [c_char; 32], pub datezone: c_int, pub write: Option<unsafe extern "C" fn(buf: *const c_uchar, len: c_int) -> c_int>, pub cb_printf: PrintfCallback, pub cb_eprintf: PrintfCallback, pub cb_color: Option<unsafe extern "C" fn(idx: c_int, last: c_int, bg: bool) -> *mut c_char>, pub scr_prompt: bool, pub disasm: Option<unsafe extern "C" fn(p: *mut c_void, addr: c_ulonglong) -> c_int>, pub oprintf: PrintfCallback, pub big_endian: c_int, pub width: c_int, pub limit: c_int, pub bits: c_int, pub histblock: bool, pub cur_enabled: bool, pub cur: c_int, pub ocur: c_int, pub cols: c_int, pub flags: c_int, pub seggrn: c_int, pub use_comments: bool, pub addrmod: c_int, pub col: c_int, pub stride: c_int, pub bytespace: c_int, pub pairs: c_int, pub resetbg: bool, pub zoom: *mut RPrintZoom, pub offname: RPrintNameCallback, pub offsize: RPrintSizeCallback, pub colorfor: RPrintColorFor, pub hasrefs: RPrintHasRefs, pub get_comments: RPrintCommentCallback, pub get_section_name: RPrintSectionGet, pub formats: *mut Sdb, pub sdb_types: *mut Sdb, pub cons: *mut RCons, pub consbind: RConsBind, pub num: *mut RNum, pub reg: *mut RReg, pub get_register: Option<unsafe extern "C" fn(reg: *mut RReg, name: *const c_char, type_: c_int) -> *mut RRegItem>, pub get_register_value: Option<unsafe extern "C" fn(reg: *mut RReg, item: *mut RRegItem) -> c_ulonglong>, pub exists_var: Option<unsafe extern "C" fn(print: *mut r_print_t, func_addr: c_ulonglong, str_: *mut c_char) -> bool>, pub lines_cache: *mut c_ulonglong, pub lines_cache_sz: c_int, pub lines_abs: c_int, pub esc_bslash: bool, pub wide_offsets: bool, pub strconv_mode: *const c_char, pub vars: *mut RList, pub io_unalloc_ch: c_char, pub show_offset: bool, pub calc_row_offsets: bool, pub row_offsets: *mut c_uint, pub row_offsets_sz: c_int, pub vflush: bool, pub screen_bounds: c_ulonglong, pub enable_progressbar: bool, pub charset: *mut RCharset,
}

Fields§

§user: *mut c_void§iob: RIOBind§pava: bool§coreb: RCoreBind§cfmt: *const c_char§datefmt: [c_char; 32]§datezone: c_int§write: Option<unsafe extern "C" fn(buf: *const c_uchar, len: c_int) -> c_int>§cb_printf: PrintfCallback§cb_eprintf: PrintfCallback§cb_color: Option<unsafe extern "C" fn(idx: c_int, last: c_int, bg: bool) -> *mut c_char>§scr_prompt: bool§disasm: Option<unsafe extern "C" fn(p: *mut c_void, addr: c_ulonglong) -> c_int>§oprintf: PrintfCallback§big_endian: c_int§width: c_int§limit: c_int§bits: c_int§histblock: bool§cur_enabled: bool§cur: c_int§ocur: c_int§cols: c_int§flags: c_int§seggrn: c_int§use_comments: bool§addrmod: c_int§col: c_int§stride: c_int§bytespace: c_int§pairs: c_int§resetbg: bool§zoom: *mut RPrintZoom§offname: RPrintNameCallback§offsize: RPrintSizeCallback§colorfor: RPrintColorFor§hasrefs: RPrintHasRefs§get_comments: RPrintCommentCallback§get_section_name: RPrintSectionGet§formats: *mut Sdb§sdb_types: *mut Sdb§cons: *mut RCons§consbind: RConsBind§num: *mut RNum§reg: *mut RReg§get_register: Option<unsafe extern "C" fn(reg: *mut RReg, name: *const c_char, type_: c_int) -> *mut RRegItem>§get_register_value: Option<unsafe extern "C" fn(reg: *mut RReg, item: *mut RRegItem) -> c_ulonglong>§exists_var: Option<unsafe extern "C" fn(print: *mut r_print_t, func_addr: c_ulonglong, str_: *mut c_char) -> bool>§lines_cache: *mut c_ulonglong§lines_cache_sz: c_int§lines_abs: c_int§esc_bslash: bool§wide_offsets: bool§strconv_mode: *const c_char§vars: *mut RList§io_unalloc_ch: c_char§show_offset: bool§calc_row_offsets: bool§row_offsets: *mut c_uint§row_offsets_sz: c_int§vflush: bool§screen_bounds: c_ulonglong§enable_progressbar: bool§charset: *mut RCharset

Trait Implementations§

Source§

impl Clone for r_print_t

Source§

fn clone(&self) -> r_print_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_print_t

Source§

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

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

impl Copy for r_print_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.