Skip to main content

TreeLikeMut

Trait TreeLikeMut 

Source
pub trait TreeLikeMut: TreeLike {
    // Required methods
    fn insert(&mut self, f: Self::F) -> LbResult<Option<Self::F>>;
    fn remove(&mut self, id: Uuid) -> LbResult<Option<Self::F>>;
    fn clear(&mut self) -> LbResult<()>;
}

Required Methods§

Source

fn insert(&mut self, f: Self::F) -> LbResult<Option<Self::F>>

Source

fn remove(&mut self, id: Uuid) -> LbResult<Option<Self::F>>

Source

fn clear(&mut self) -> LbResult<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<F> TreeLikeMut for Option<F>
where F: FileLike,

Source§

fn insert(&mut self, f: F) -> LbResult<Option<F>>

Source§

fn remove(&mut self, id: Uuid) -> LbResult<Option<F>>

Source§

fn clear(&mut self) -> LbResult<()>

Source§

impl<F> TreeLikeMut for Vec<F>
where F: FileLike,

Source§

fn insert(&mut self, f: F) -> LbResult<Option<F>>

Source§

fn remove(&mut self, id: Uuid) -> LbResult<Option<F>>

Source§

fn clear(&mut self) -> LbResult<()>

Source§

impl<F> TreeLikeMut for HashMap<Uuid, F>
where F: FileLike,

Source§

fn insert(&mut self, f: F) -> LbResult<Option<F>>

Source§

fn remove(&mut self, id: Uuid) -> LbResult<Option<F>>

Source§

fn clear(&mut self) -> LbResult<()>

Source§

impl<F, S> TreeLikeMut for LookupTable<Uuid, F, S>

Source§

fn insert(&mut self, f: Self::F) -> LbResult<Option<Self::F>>

Source§

fn remove(&mut self, id: Uuid) -> LbResult<Option<Self::F>>

Source§

fn clear(&mut self) -> LbResult<()>

Source§

impl<T> TreeLikeMut for &mut T
where T: TreeLikeMut,

Source§

fn insert(&mut self, f: Self::F) -> LbResult<Option<Self::F>>

Source§

fn remove(&mut self, id: Uuid) -> LbResult<Option<Self::F>>

Source§

fn clear(&mut self) -> LbResult<()>

Implementors§

Source§

impl TreeLikeMut for ServerTree<'_>

Source§

impl<Base, Staged> TreeLikeMut for StagedTree<Base, Staged>
where Base: TreeLike, Staged: TreeLikeMut<F = Base::F>,