#[repr(C)]pub struct nctree_item {
pub curry: *mut c_void,
pub subs: *mut nctree_item,
pub subcount: c_uint,
}Expand description
each item has a curry, and zero or more subitems.
Fields§
§curry: *mut c_void§subs: *mut nctree_item§subcount: c_uintImplementations§
Source§impl nctree_item
§NcTreeItem constructor
impl nctree_item
§NcTreeItem constructor
Sourcepub fn new(
curry: &str,
subs: Option<&mut [NcTreeItem]>,
subcount: usize,
) -> Self
pub fn new( curry: &str, subs: Option<&mut [NcTreeItem]>, subcount: usize, ) -> Self
Creates an NcTreeItem.
Trait Implementations§
Source§impl Debug for nctree_item
impl Debug for nctree_item
Source§impl Default for nctree_item
impl Default for nctree_item
Source§impl Hash for nctree_item
impl Hash for nctree_item
Source§impl Ord for nctree_item
impl Ord for nctree_item
Source§fn cmp(&self, other: &nctree_item) -> Ordering
fn cmp(&self, other: &nctree_item) -> 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_item
impl PartialEq for nctree_item
Source§impl PartialOrd for nctree_item
impl PartialOrd for nctree_item
impl Eq for nctree_item
impl StructuralPartialEq for nctree_item
Auto Trait Implementations§
impl Freeze for nctree_item
impl RefUnwindSafe for nctree_item
impl !Send for nctree_item
impl !Sync for nctree_item
impl Unpin for nctree_item
impl UnwindSafe for nctree_item
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