Trait nekolib_doc::seq::lis::LisMapProj

source ·
pub trait LisMapProj<T>
where T: Ord + Clone,
{ type Mapped: Ord + Clone; // Required methods fn map(&self, index: usize, elt: &T) -> Self::Mapped; fn proj(&self, elt: &Self::Mapped) -> usize; }

Required Associated Types§

Required Methods§

source

fn map(&self, index: usize, elt: &T) -> Self::Mapped

source

fn proj(&self, elt: &Self::Mapped) -> usize

Implementors§

source§

impl<T> LisMapProj<T> for Largest
where T: Ord + Clone,

source§

type Mapped = (T, usize)

source§

impl<T> LisMapProj<T> for Leftmost
where T: Ord + Clone,

source§

impl<T> LisMapProj<T> for Rightmost
where T: Ord + Clone,

source§

impl<T> LisMapProj<T> for Smallest
where T: Ord + Clone,