[][src]Trait dynamization::Singleton

pub trait Singleton where
    Self: Sized
{ type Item; pub fn singleton(item: Self::Item) -> Self; }

A trait which can be implemented to provide a dynamized structure with a convenient insert method.

Associated Types

type Item[src]

A type of the container payload.

Loading content...

Required methods

pub fn singleton(item: Self::Item) -> Self[src]

A container made from a single item.

Loading content...

Implementors

impl<T> Singleton for SortedVec<T>[src]

type Item = T

Loading content...