#[repr(C)]pub struct nctree_options {
pub items: *const nctree_item,
pub count: u32,
pub nctreecb: Option<unsafe extern "C" fn(*mut ncplane, *mut c_void, i32) -> i32>,
pub indentcols: i32,
pub flags: u64,
}Fields§
§items: *const nctree_itemtop-level nctree_item array
count: u32size of |items|
nctreecb: Option<unsafe extern "C" fn(*mut ncplane, *mut c_void, i32) -> i32>item callback function
indentcols: i32columns 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: &[nctree_item], indentcols: u32) -> nctree_options
pub fn new(items: &[nctree_item], indentcols: u32) -> nctree_options
New NcTreeOptions for NcTree.
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§fn default() -> nctree_options
fn default() -> nctree_options
Returns the “default value” for a type. Read more
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