Trait odoo_lsp::utils::RangeExt

source ·
pub trait RangeExt {
    type Unit;

    // Required methods
    fn map_unit<F, V>(self, op: F) -> Range<V>
       where F: FnMut(Self::Unit) -> V;
    fn contract(self, value: Self::Unit) -> Range<Self::Unit>
       where Self: Sized,
             Self::Unit: Add<Self::Unit, Output = Self::Unit> + Sub<Self::Unit, Output = Self::Unit> + Copy;
}

Required Associated Types§

Required Methods§

source

fn map_unit<F, V>(self, op: F) -> Range<V>where F: FnMut(Self::Unit) -> V,

source

fn contract(self, value: Self::Unit) -> Range<Self::Unit>where Self: Sized, Self::Unit: Add<Self::Unit, Output = Self::Unit> + Sub<Self::Unit, Output = Self::Unit> + Copy,

Implementations on Foreign Types§

source§

impl<T> RangeExt for Range<T>

§

type Unit = T

source§

fn map_unit<F, V>(self, op: F) -> Range<V>where F: FnMut(Self::Unit) -> V,

source§

fn contract(self, value: Self::Unit) -> Range<Self::Unit>where Self: Sized, Self::Unit: Add<Self::Unit, Output = Self::Unit> + Sub<Self::Unit, Output = Self::Unit> + Copy,

Implementors§