[][src]Struct rls_span::Position

pub struct Position<I: Indexed> {
    pub row: Row<I>,
    pub col: Column<I>,


row: Row<I>col: Column<I>


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

pub fn new(row: Row<I>, col: Column<I>) -> Position<I>[src]

impl Position<OneIndexed>[src]

impl Position<ZeroIndexed>[src]

Trait Implementations

impl<I: Indexed> Clone for Position<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 Position<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<Position<I>> for Position<I>[src]

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

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

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

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

impl<I: Hash + Indexed> Hash for Position<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 Position<I> where
    I: Serialize

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

Auto Trait Implementations

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

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

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

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

impl<I> UnwindSafe for Position<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>,