pub struct Modus {
pub root: TreeBranch,
}Fields§
§root: TreeBranchImplementations§
Source§impl Modus
impl Modus
pub fn new(root: &str) -> Modus
pub fn add(&mut self, item: &str) -> InsertResult
pub fn size(&self) -> usize
pub fn takeables(&self) -> Vec<&str>
pub fn take(&mut self, item: &str) -> FetchResult
pub fn take_root(&mut self) -> FetchResult
pub fn balance(&mut self)
pub fn autobalance(&mut self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Modus
impl RefUnwindSafe for Modus
impl Send for Modus
impl Sync for Modus
impl Unpin for Modus
impl UnwindSafe for Modus
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