Trait object_chain::ChainElement[][src]

pub trait ChainElement: Sealed {
    type Inner;
    fn len(&self) -> usize;
fn get(&self) -> &Self::Inner;
fn get_mut(&mut self) -> &mut Self::Inner; fn append<T>(self, item: T) -> Link<T, Self>
    where
        Self: Sized
, { ... } }

A generic chain element

Associated Types

Loading content...

Required methods

fn len(&self) -> usize[src]

Return the number of objects linked to this chain element

fn get(&self) -> &Self::Inner[src]

fn get_mut(&mut self) -> &mut Self::Inner[src]

Loading content...

Provided methods

fn append<T>(self, item: T) -> Link<T, Self> where
    Self: Sized
[src]

Append an object to the chain

Loading content...

Implementors

impl<V> ChainElement for Chain<V>[src]

type Inner = V

impl<V, VC> ChainElement for Link<V, VC> where
    VC: ChainElement
[src]

type Inner = V

Loading content...