Struct term_model::index::Point
source · pub struct Point<L = Line> {
pub line: L,
pub col: Column,
}
Expand description
Index in the grid using row, column notation
Fields§
§line: L
§col: Column
Implementations§
Trait Implementations§
source§impl From<RenderableCell> for Point<Line>
impl From<RenderableCell> for Point<Line>
source§fn from(cell: RenderableCell) -> Self
fn from(cell: RenderableCell) -> Self
Converts to this type from the input type.
source§impl Ord for Point
impl Ord for Point
source§impl<L: PartialEq> PartialEq for Point<L>
impl<L: PartialEq> PartialEq for Point<L>
source§impl<L: PartialOrd> PartialOrd for Point<L>
impl<L: PartialOrd> PartialOrd for Point<L>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<L: Copy> Copy for Point<L>
impl<L: Eq> Eq for Point<L>
impl<L> StructuralPartialEq for Point<L>
Auto Trait Implementations§
impl<L> Freeze for Point<L>where
L: Freeze,
impl<L> RefUnwindSafe for Point<L>where
L: RefUnwindSafe,
impl<L> Send for Point<L>where
L: Send,
impl<L> Sync for Point<L>where
L: Sync,
impl<L> Unpin for Point<L>where
L: Unpin,
impl<L> UnwindSafe for Point<L>where
L: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)