Struct freya::hooks::TextCursor
pub struct TextCursor { /* private fields */ }
Expand description
Holds the position of a cursor in a text
Implementations§
§impl TextCursor
impl TextCursor
pub 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§
§impl Clone for TextCursor
impl Clone for TextCursor
§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 more§impl Default for TextCursor
impl Default for TextCursor
§fn default() -> TextCursor
fn default() -> TextCursor
Returns the “default value” for a type. Read more
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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.