Struct cyfs_lib::RangeHelper
source · pub struct RangeHelper<Idx> { /* private fields */ }
Implementations
sourceimpl<Idx> RangeHelper<Idx>
impl<Idx> RangeHelper<Idx>
pub fn intersect(left: &Range<Idx>, right: &Range<Idx>) -> Option<Range<Idx>>where
Idx: PartialOrd<Idx> + Ord + Copy,
pub fn intersect_list(
target: &Range<Idx>,
ranges: &Vec<Range<Idx>>
) -> Vec<Range<Idx>> ⓘwhere
Idx: PartialOrd<Idx> + Ord + Copy,
pub fn sum(ranges: &Vec<Range<Idx>>) -> Idxwhere
Idx: Add<Output = Idx> + Sub<Output = Idx> + Default + Copy,
Auto Trait Implementations
impl<Idx> RefUnwindSafe for RangeHelper<Idx>where
Idx: RefUnwindSafe,
impl<Idx> Send for RangeHelper<Idx>where
Idx: Send,
impl<Idx> Sync for RangeHelper<Idx>where
Idx: Sync,
impl<Idx> Unpin for RangeHelper<Idx>where
Idx: Unpin,
impl<Idx> UnwindSafe for RangeHelper<Idx>where
Idx: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more