pub struct DatabaseTreeItem { /* private fields */ }
Expand description
DatabaseTreeItem
can be of two kinds: see DatabaseTreeItem
but shares an info
Implementations§
Source§impl DatabaseTreeItem
impl DatabaseTreeItem
pub fn new_table(database: &Database, table: &Table) -> Self
pub fn new_schema( database: &Database, schema: &Schema, _collapsed: bool, ) -> Self
pub fn new_database(database: &Database, _collapsed: bool) -> Self
pub fn set_collapsed(&mut self, collapsed: bool)
pub const fn info(&self) -> &TreeItemInfo
pub fn info_mut(&mut self) -> &mut TreeItemInfo
pub const fn kind(&self) -> &DatabaseTreeItemKind
pub fn collapse_database(&mut self)
pub fn expand_database(&mut self)
pub fn collapse_schema(&mut self)
pub fn expand_schema(&mut self)
pub fn show(&mut self)
pub fn hide(&mut self)
pub fn is_match(&self, filter_text: &str) -> bool
pub fn is_database(&self) -> bool
Trait Implementations§
Source§impl Clone for DatabaseTreeItem
impl Clone for DatabaseTreeItem
Source§fn clone(&self) -> DatabaseTreeItem
fn clone(&self) -> DatabaseTreeItem
Returns a duplicate 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 DatabaseTreeItem
impl Debug for DatabaseTreeItem
Source§impl Ord for DatabaseTreeItem
impl Ord for DatabaseTreeItem
Source§impl PartialEq for DatabaseTreeItem
impl PartialEq for DatabaseTreeItem
Source§impl PartialOrd for DatabaseTreeItem
impl PartialOrd for DatabaseTreeItem
impl Eq for DatabaseTreeItem
Auto Trait Implementations§
impl Freeze for DatabaseTreeItem
impl RefUnwindSafe for DatabaseTreeItem
impl Send for DatabaseTreeItem
impl Sync for DatabaseTreeItem
impl Unpin for DatabaseTreeItem
impl UnwindSafe for DatabaseTreeItem
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