RangeVecOps

Trait RangeVecOps 

Source
pub trait RangeVecOps<T: RangeInfo> {
    // Required methods
    fn merge_add(
        &mut self,
        new_info: T,
        temp: &mut [u8],
    ) -> Result<(), RangeError<T>>;
    fn merge_remove(
        &mut self,
        range: Range<T::Type>,
        temp: &mut [u8],
    ) -> Result<(), RangeError<T>>;
    fn merge_extend<I>(
        &mut self,
        ranges: I,
        temp: &mut [u8],
    ) -> Result<(), RangeError<T>>
       where I: IntoIterator<Item = T>;
    fn contains_point(&self, value: T::Type) -> bool;
}

Required Methods§

Source

fn merge_add( &mut self, new_info: T, temp: &mut [u8], ) -> Result<(), RangeError<T>>

Source

fn merge_remove( &mut self, range: Range<T::Type>, temp: &mut [u8], ) -> Result<(), RangeError<T>>

Source

fn merge_extend<I>( &mut self, ranges: I, temp: &mut [u8], ) -> Result<(), RangeError<T>>
where I: IntoIterator<Item = T>,

Source

fn contains_point(&self, value: T::Type) -> bool

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.

Implementations on Foreign Types§

Source§

impl<T: RangeInfo, const N: usize> RangeVecOps<T> for Vec<T, N>

Source§

fn merge_add( &mut self, new_info: T, temp: &mut [u8], ) -> Result<(), RangeError<T>>

Source§

fn merge_remove( &mut self, range: Range<T::Type>, temp: &mut [u8], ) -> Result<(), RangeError<T>>

Source§

fn merge_extend<I>( &mut self, ranges: I, temp: &mut [u8], ) -> Result<(), RangeError<T>>
where I: IntoIterator<Item = T>,

Source§

fn contains_point(&self, value: T::Type) -> bool

Implementors§