[−][src]Struct rls_span::Position
Fields
row: Row<I>
col: Column<I>
Implementations
impl<I: Indexed> Position<I>
[src]
impl Position<OneIndexed>
[src]
pub fn zero_indexed(self) -> Position<ZeroIndexed>
[src]
impl Position<ZeroIndexed>
[src]
pub fn one_indexed(self) -> Position<OneIndexed>
[src]
Trait Implementations
impl<I: Indexed> Clone for Position<I>
[src]
impl<I: Indexed> Copy for Position<I>
[src]
impl<I: Debug + Indexed> Debug for Position<I>
[src]
impl<I: Eq + Indexed> Eq for Position<I>
[src]
impl<I: Hash + Indexed> Hash for Position<I>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<I: Ord + Indexed> Ord for Position<I>
[src]
pub fn cmp(&self, other: &Position<I>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<I: PartialEq + Indexed> PartialEq<Position<I>> for Position<I>
[src]
pub fn eq(&self, other: &Position<I>) -> bool
[src]
pub fn ne(&self, other: &Position<I>) -> bool
[src]
impl<I: PartialOrd + Indexed> PartialOrd<Position<I>> for Position<I>
[src]
pub fn partial_cmp(&self, other: &Position<I>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Position<I>) -> bool
[src]
pub fn le(&self, other: &Position<I>) -> bool
[src]
pub fn gt(&self, other: &Position<I>) -> bool
[src]
pub fn ge(&self, other: &Position<I>) -> bool
[src]
impl<I: Indexed> StructuralEq for Position<I>
[src]
impl<I: Indexed> StructuralPartialEq for Position<I>
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for Position<I> where
I: RefUnwindSafe,
[src]
I: RefUnwindSafe,
impl<I> Send for Position<I> where
I: Send,
[src]
I: Send,
impl<I> Sync for Position<I> where
I: Sync,
[src]
I: Sync,
impl<I> Unpin for Position<I> where
I: Unpin,
[src]
I: Unpin,
impl<I> UnwindSafe for Position<I> where
I: UnwindSafe,
[src]
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,