Enum atspi_common::Granularity
source · #[repr(u32)]pub enum Granularity {
Char,
Word,
Sentence,
Line,
Paragraph,
}
Expand description
Level of granularity to get text of, in relation to a cursor position.
Variants§
Char
Gives the character at the index of the cursor. With a line-style cursor (which is standard) this will get the character that appears after the cursor.
Word
Gives the entire word in front of, or which contains, the cursor. TODO: confirm that it always chooses the word in front of the cursor.
Sentence
Gives entire sentence in front of, or which contains, the cursor. TODO: confirm that it always chooses the sentence after the cursor.
Line
Gives the line, as seen visually of which the cursor is situated within.
Paragraph
Gives the entire block of text, regardless of where the cursor lies within it.
Trait Implementations§
source§impl Clone for Granularity
impl Clone for Granularity
source§fn clone(&self) -> Granularity
fn clone(&self) -> Granularity
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 Granularity
impl Debug for Granularity
source§impl<'de> Deserialize<'de> for Granularity
impl<'de> Deserialize<'de> for Granularity
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 Hash for Granularity
impl Hash for Granularity
source§impl PartialEq<Granularity> for Granularity
impl PartialEq<Granularity> for Granularity
source§fn eq(&self, other: &Granularity) -> bool
fn eq(&self, other: &Granularity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Granularity
impl Serialize for Granularity
source§impl Type for Granularity
impl Type for Granularity
impl Copy for Granularity
impl Eq for Granularity
impl StructuralEq for Granularity
impl StructuralPartialEq for Granularity
Auto Trait Implementations§
impl RefUnwindSafe for Granularity
impl Send for Granularity
impl Sync for Granularity
impl Unpin for Granularity
impl UnwindSafe for Granularity
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<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>where
S: TryInto<Signature<'de>>,
<S as TryInto<Signature<'de>>>::Error: Into<Error>,
fn deserializer_for_signature<S>( signature: S ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>where S: TryInto<Signature<'de>>, <S as TryInto<Signature<'de>>>::Error: Into<Error>,
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere T: Type + ?Sized,
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more