Trait ChainElement

Source
pub trait ChainElement: Sized + Sealed {
    // Required method
    fn len(&self) -> usize;
}
Expand description

A generic chain element

Required Methods§

Source

fn len(&self) -> usize

Return the number of objects linked to this chain element

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<V> ChainElement for Chain<V>

Source§

impl<V, VC> ChainElement for Link<V, VC>
where VC: ChainElement,