Struct libnotcurses_sys::c_api::nctree_item
source · [−]#[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_voidsubs: *mut nctree_itemsubcount: c_uintImplementations
sourceimpl 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
sourceimpl Debug for nctree_item
impl Debug for nctree_item
sourceimpl Default for nctree_item
impl Default for nctree_item
sourceimpl Hash for nctree_item
impl Hash for nctree_item
sourceimpl Ord for nctree_item
impl Ord for nctree_item
sourceimpl PartialEq<nctree_item> for nctree_item
impl PartialEq<nctree_item> for nctree_item
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &nctree_item) -> bool
fn ne(&self, other: &nctree_item) -> bool
This method tests for !=.
sourceimpl PartialOrd<nctree_item> for nctree_item
impl PartialOrd<nctree_item> for nctree_item
sourcefn partial_cmp(&self, other: &nctree_item) -> Option<Ordering>
fn partial_cmp(&self, other: &nctree_item) -> 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_item
impl StructuralEq for nctree_item
impl StructuralPartialEq for nctree_item
Auto Trait Implementations
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
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