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
impl Copy for TextPosition
impl Eq for TextPosition
impl StructuralPartialEq for TextPosition
Auto Trait Implementations§
impl Freeze for TextPosition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)