Struct accesskit::TextPosition
source · pub struct TextPosition {
pub node: NodeId,
pub character_index: usize,
}
Fields§
§node: NodeId
The node’s role must be Role::InlineTextBox
.
character_index: usize
The index of an item in Node::character_lengths
, or the length
of that slice if the position is at the end of the line.
Trait Implementations§
source§impl Clone for TextPosition
impl Clone for TextPosition
source§fn clone(&self) -> TextPosition
fn clone(&self) -> TextPosition
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 TextPosition
impl Debug for TextPosition
source§impl PartialEq for TextPosition
impl PartialEq for TextPosition
source§fn eq(&self, other: &TextPosition) -> bool
fn eq(&self, other: &TextPosition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextPosition
impl Eq for TextPosition
impl StructuralEq for TextPosition
impl StructuralPartialEq for TextPosition
Auto Trait Implementations§
impl RefUnwindSafe for TextPosition
impl Send for TextPosition
impl Sync for TextPosition
impl Unpin for TextPosition
impl UnwindSafe for TextPosition
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