Struct rstk::treeview::TkTreeviewItem
source · pub struct TkTreeviewItem {
pub treeview: String,
pub id: String,
}
Expand description
Refers to a treeview item
Fields§
§treeview: String
§id: String
Implementations§
source§impl TkTreeviewItem
impl TkTreeviewItem
sourcepub fn insert_item(&self) -> TkTreeviewItem
pub fn insert_item(&self) -> TkTreeviewItem
Create a new item at end of this treeview item.
sourcepub fn insert_item_at(&self, index: u64) -> TkTreeviewItem
pub fn insert_item_at(&self, index: u64) -> TkTreeviewItem
Create a new top-level item at given index position of this treeview item.
sourcepub fn parent(&self) -> Option<TkTreeviewItem>
pub fn parent(&self) -> Option<TkTreeviewItem>
Returns an Option type containing the parent item if found, or None if this is a top-level item.
sourcepub fn previous(&self) -> Option<TkTreeviewItem>
pub fn previous(&self) -> Option<TkTreeviewItem>
Returns an Option type containing the previous item to this one in its list, if found, or None if this is the first child of its parent.
sourcepub fn next(&self) -> Option<TkTreeviewItem>
pub fn next(&self) -> Option<TkTreeviewItem>
Returns an Option type containing the next item to this one in its list, if found, or None if this is the last child of its parent.
sourcepub fn children(&self) -> Vec<TkTreeviewItem>
pub fn children(&self) -> Vec<TkTreeviewItem>
Returns a list of child items of given node.
sourcepub fn tag_remove(&self, tag: &str)
pub fn tag_remove(&self, tag: &str)
Removes a tag from this item.
Trait Implementations§
source§impl Clone for TkTreeviewItem
impl Clone for TkTreeviewItem
source§fn clone(&self) -> TkTreeviewItem
fn clone(&self) -> TkTreeviewItem
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TkTreeviewItem
impl Debug for TkTreeviewItem
source§impl PartialEq for TkTreeviewItem
impl PartialEq for TkTreeviewItem
source§fn eq(&self, other: &TkTreeviewItem) -> bool
fn eq(&self, other: &TkTreeviewItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TkTreeviewItem
Auto Trait Implementations§
impl RefUnwindSafe for TkTreeviewItem
impl Send for TkTreeviewItem
impl Sync for TkTreeviewItem
impl Unpin for TkTreeviewItem
impl UnwindSafe for TkTreeviewItem
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