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<'de> Deserialize<'de> for TextPosition
impl<'de> Deserialize<'de> for TextPosition
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for TextPosition
impl JsonSchema for TextPosition
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<TextPosition> for TextPosition
impl PartialEq<TextPosition> 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 ==
.