[][src]Enum atk::TextGranularity

#[non_exhaustive]pub enum TextGranularity {
    Char,
    Word,
    Sentence,
    Line,
    Paragraph,
    // some variants omitted
}

Text granularity types used for specifying the granularity of the region of text we are interested in.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Char

Granularity is defined by the boundaries between characters (including non-printing characters)

Word

Granularity is defined by the boundaries of a word, starting at the beginning of the current word and finishing at the beginning of the following one, if present.

Sentence

Granularity is defined by the boundaries of a sentence, starting at the beginning of the current sentence and finishing at the beginning of the following one, if present.

Line

Granularity is defined by the boundaries of a line, starting at the beginning of the current line and finishing at the beginning of the following one, if present.

Paragraph

Granularity is defined by the boundaries of a paragraph, starting at the beginning of the current paragraph and finishing at the beginning of the following one, if present.

Trait Implementations

impl Clone for TextGranularity[src]

impl Copy for TextGranularity[src]

impl Debug for TextGranularity[src]

impl Display for TextGranularity[src]

impl Eq for TextGranularity[src]

impl<'a> FromValue<'a> for TextGranularity[src]

impl<'a> FromValueOptional<'a> for TextGranularity[src]

impl Hash for TextGranularity[src]

impl Ord for TextGranularity[src]

impl PartialEq<TextGranularity> for TextGranularity[src]

impl PartialOrd<TextGranularity> for TextGranularity[src]

impl SetValue for TextGranularity[src]

impl StaticType for TextGranularity[src]

impl StructuralEq for TextGranularity[src]

impl StructuralPartialEq for TextGranularity[src]

Auto Trait Implementations

impl RefUnwindSafe for TextGranularity

impl Send for TextGranularity

impl Sync for TextGranularity

impl Unpin for TextGranularity

impl UnwindSafe for TextGranularity

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.