Struct libnotcurses_sys::c_api::ffi::nctree_options
source · [−]#[repr(C)]pub struct nctree_options {
pub items: *const nctree_item,
pub count: c_uint,
pub nctreecb: Option<unsafe extern "C" fn(arg1: *mut ncplane, arg2: *mut c_void, arg3: c_int) -> c_int>,
pub indentcols: c_int,
pub flags: u64,
}Fields
items: *const nctree_itemtop-level nctree_item array
count: c_uintsize of |items|
nctreecb: Option<unsafe extern "C" fn(arg1: *mut ncplane, arg2: *mut c_void, arg3: c_int) -> c_int>item callback function
indentcols: c_intcolumns to indent per level of hierarchy
flags: u64bitfield of NCTREE_OPTION_*
Implementations
sourceimpl nctree_options
impl nctree_options
sourcepub fn with_all_args(
items: &[NcTreeItem],
count: usize,
nctreecb: Option<NcTreeItemCbUnsafe>,
indentcols: u32,
flags: u64
) -> Self
pub fn with_all_args(
items: &[NcTreeItem],
count: usize,
nctreecb: Option<NcTreeItemCbUnsafe>,
indentcols: u32,
flags: u64
) -> Self
New NcTreeOptions for NcTree, with all args.
Trait Implementations
sourceimpl Debug for nctree_options
impl Debug for nctree_options
sourceimpl Default for nctree_options
impl Default for nctree_options
sourceimpl Hash for nctree_options
impl Hash for nctree_options
sourceimpl Ord for nctree_options
impl Ord for nctree_options
sourceimpl PartialEq<nctree_options> for nctree_options
impl PartialEq<nctree_options> for nctree_options
sourcefn eq(&self, other: &nctree_options) -> bool
fn eq(&self, other: &nctree_options) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &nctree_options) -> bool
fn ne(&self, other: &nctree_options) -> bool
This method tests for !=.
sourceimpl PartialOrd<nctree_options> for nctree_options
impl PartialOrd<nctree_options> for nctree_options
sourcefn partial_cmp(&self, other: &nctree_options) -> Option<Ordering>
fn partial_cmp(&self, other: &nctree_options) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Eq for nctree_options
impl StructuralEq for nctree_options
impl StructuralPartialEq for nctree_options
Auto Trait Implementations
impl RefUnwindSafe for nctree_options
impl !Send for nctree_options
impl !Sync for nctree_options
impl Unpin for nctree_options
impl UnwindSafe for nctree_options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more