[][src]Struct rls_span::Range

pub struct Range<I: Indexed> {
    pub row_start: Row<I>,
    pub row_end: Row<I>,
    pub col_start: Column<I>,
    pub col_end: Column<I>,


row_start: Row<I>row_end: Row<I>col_start: Column<I>col_end: Column<I>


impl<I: Indexed> Range<I>[src]

pub fn new(
    row_start: Row<I>,
    row_end: Row<I>,
    col_start: Column<I>,
    col_end: Column<I>
) -> Range<I>

pub fn from_positions(start: Position<I>, end: Position<I>) -> Range<I>[src]

pub fn start(self) -> Position<I>[src]

pub fn end(self) -> Position<I>[src]

impl Range<OneIndexed>[src]

impl Range<ZeroIndexed>[src]

Trait Implementations

impl<I: Indexed> Clone for Range<I>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<I: Ord + Indexed> Ord for Range<I>[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl<I: PartialOrd + Indexed> PartialOrd<Range<I>> for Range<I>[src]

impl<I: PartialEq + Indexed> PartialEq<Range<I>> for Range<I>[src]

impl<I: Indexed> Copy for Range<I>[src]

impl<I: Eq + Indexed> Eq for Range<I>[src]

impl<I: Debug + Indexed> Debug for Range<I>[src]

impl<I: Hash + Indexed> Hash for Range<I>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher

Feeds a slice of this type into the given [Hasher]. Read more

impl<I: Indexed> Serialize for Range<I> where
    I: Serialize

impl<'de, I: Indexed> Deserialize<'de> for Range<I> where
    I: Deserialize<'de>, 

Auto Trait Implementations

impl<I> Sync for Range<I> where
    I: Sync

impl<I> Send for Range<I> where
    I: Send

impl<I> Unpin for Range<I> where
    I: Unpin

impl<I> RefUnwindSafe for Range<I> where
    I: RefUnwindSafe

impl<I> UnwindSafe for Range<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>,