Struct libnotcurses_sys::c_api::nctree_item
source · 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
impl nctree_item
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<nctree_item> for nctree_item
impl PartialEq<nctree_item> for nctree_item
source§fn eq(&self, other: &nctree_item) -> bool
fn eq(&self, other: &nctree_item) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<nctree_item> for nctree_item
impl PartialOrd<nctree_item> for nctree_item
source§fn partial_cmp(&self, other: &nctree_item) -> Option<Ordering>
fn partial_cmp(&self, other: &nctree_item) -> Option<Ordering>
1.0.0 · source§fn 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