Skip to main content

StagedTreeLike

Trait StagedTreeLike 

Source
pub trait StagedTreeLike: TreeLike {
    type Base: TreeLike<F = Self::F>;
    type Staged: TreeLike<F = Self::F>;

    // Required methods
    fn base(&self) -> &Self::Base;
    fn staged(&self) -> &Self::Staged;
}

Required Associated Types§

Source

type Base: TreeLike<F = Self::F>

Source

type Staged: TreeLike<F = Self::F>

Required Methods§

Source

fn base(&self) -> &Self::Base

Source

fn staged(&self) -> &Self::Staged

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<T> StagedTreeLike for &T
where T: StagedTreeLike,

Source§

type Base = <T as StagedTreeLike>::Base

Source§

type Staged = <T as StagedTreeLike>::Staged

Source§

fn base(&self) -> &Self::Base

Source§

fn staged(&self) -> &Self::Staged

Source§

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

Source§

type Base = <T as StagedTreeLike>::Base

Source§

type Staged = <T as StagedTreeLike>::Staged

Source§

fn base(&self) -> &Self::Base

Source§

fn staged(&self) -> &Self::Staged

Implementors§

Source§

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

Source§

type Base = Base

Source§

type Staged = Staged