Struct freya::prelude::TextCursor
source · pub struct TextCursor { /* private fields */ }
Expand description
Holds the position of a cursor in a text
Implementations§
source§impl TextCursor
impl TextCursor
sourcepub fn new(row: usize, col: usize) -> TextCursor
pub fn new(row: usize, col: usize) -> TextCursor
Construct a new TextCursor given a row and a column
pub fn as_tuple(&self) -> (usize, usize)
Trait Implementations§
source§impl Clone for TextCursor
impl Clone for TextCursor
source§fn clone(&self) -> TextCursor
fn clone(&self) -> TextCursor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TextCursor
impl Debug for TextCursor
source§impl Default for TextCursor
impl Default for TextCursor
source§fn default() -> TextCursor
fn default() -> TextCursor
Returns the “default value” for a type. Read more
source§impl PartialEq<TextCursor> for TextCursor
impl PartialEq<TextCursor> for TextCursor
source§fn eq(&self, other: &TextCursor) -> bool
fn eq(&self, other: &TextCursor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TextCursor
Auto Trait Implementations§
impl RefUnwindSafe for TextCursor
impl Send for TextCursor
impl Sync for TextCursor
impl Unpin for TextCursor
impl UnwindSafe for TextCursor
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.