fy_diag_cfg

Struct fy_diag_cfg 

Source
#[repr(C)]
pub struct fy_diag_cfg { pub fp: *mut FILE, pub output_fn: fy_diag_output_fn, pub user: *mut c_void, pub level: fy_error_type, pub module_mask: c_uint, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub source_width: c_int, pub position_width: c_int, pub type_width: c_int, pub module_width: c_int, }

Fields§

§fp: *mut FILE§output_fn: fy_diag_output_fn§user: *mut c_void§level: fy_error_type§module_mask: c_uint§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§source_width: c_int§position_width: c_int§type_width: c_int§module_width: c_int

Implementations§

Source§

impl fy_diag_cfg

Source

pub fn colorize(&self) -> bool

Source

pub fn set_colorize(&mut self, val: bool)

Source

pub unsafe fn colorize_raw(this: *const Self) -> bool

Source

pub unsafe fn set_colorize_raw(this: *mut Self, val: bool)

Source

pub fn show_source(&self) -> bool

Source

pub fn set_show_source(&mut self, val: bool)

Source

pub unsafe fn show_source_raw(this: *const Self) -> bool

Source

pub unsafe fn set_show_source_raw(this: *mut Self, val: bool)

Source

pub fn show_position(&self) -> bool

Source

pub fn set_show_position(&mut self, val: bool)

Source

pub unsafe fn show_position_raw(this: *const Self) -> bool

Source

pub unsafe fn set_show_position_raw(this: *mut Self, val: bool)

Source

pub fn show_type(&self) -> bool

Source

pub fn set_show_type(&mut self, val: bool)

Source

pub unsafe fn show_type_raw(this: *const Self) -> bool

Source

pub unsafe fn set_show_type_raw(this: *mut Self, val: bool)

Source

pub fn show_module(&self) -> bool

Source

pub fn set_show_module(&mut self, val: bool)

Source

pub unsafe fn show_module_raw(this: *const Self) -> bool

Source

pub unsafe fn set_show_module_raw(this: *mut Self, val: bool)

Source

pub fn new_bitfield_1( colorize: bool, show_source: bool, show_position: bool, show_type: bool, show_module: bool, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for fy_diag_cfg

Source§

fn clone(&self) -> fy_diag_cfg

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 fy_diag_cfg

Source§

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

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

impl Copy for fy_diag_cfg

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.