pub trait BoundExt<T>where
    T: EndPointTrait<T>,
    isize: Into<T>,{
    // Required methods
    fn into_left_closed(&self) -> T;
    fn into_right_closed(&self) -> T;
}
Expand description

Extend bound adding few methods.

Required Methods§

source

fn into_left_closed(&self) -> T

Convert bound to an integer to resemble left bound of a closed interval.

source

fn into_right_closed(&self) -> T

Convert bound to an integer to resemble right bound of a closed interval.

Implementors§

source§

impl<T> BoundExt<T> for Bound<T>where T: EndPointTrait<T>, isize: Into<T>,