#[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§
Source§impl nctree_options
§NcTreeOptions constructors
impl nctree_options
§NcTreeOptions constructors
Sourcepub fn new(items: &[NcTreeItem], indentcols: u32) -> Self
pub fn new(items: &[NcTreeItem], indentcols: u32) -> Self
New NcTreeOptions for NcTree.
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§
Source§impl Debug for nctree_options
impl Debug for nctree_options
Source§impl Default for nctree_options
impl Default for nctree_options
Source§impl Hash for nctree_options
impl Hash for nctree_options
Source§impl Ord for nctree_options
impl Ord for nctree_options
Source§fn cmp(&self, other: &nctree_options) -> Ordering
fn cmp(&self, other: &nctree_options) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for nctree_options
impl PartialEq for nctree_options
Source§impl PartialOrd for nctree_options
impl PartialOrd for nctree_options
impl Eq for nctree_options
impl StructuralPartialEq for nctree_options
Auto Trait Implementations§
impl Freeze for nctree_options
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more