[][src]Enum atk::TextBoundary

#[non_exhaustive]pub enum TextBoundary {
    Char,
    WordStart,
    WordEnd,
    SentenceStart,
    SentenceEnd,
    LineStart,
    LineEnd,
    // some variants omitted
}

Text boundary types used for specifying boundaries for regions of text. This enumeration is deprecated since 2.9.4 and should not be used. Use AtkTextGranularity with Text::get_string_at_offset instead.

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

Boundary is the boundary between characters (including non-printing characters)

WordStart

Boundary is the start (i.e. first character) of a word.

WordEnd

Boundary is the end (i.e. last character) of a word.

SentenceStart

Boundary is the first character in a sentence.

SentenceEnd

Boundary is the last (terminal) character in a sentence; in languages which use "sentence stop" punctuation such as English, the boundary is thus the '.', '?', or similar terminal punctuation character.

LineStart

Boundary is the initial character of the content or a character immediately following a newline, linefeed, or return character.

LineEnd

Boundary is the linefeed, or return character.

Trait Implementations

impl Clone for TextBoundary[src]

impl Copy for TextBoundary[src]

impl Debug for TextBoundary[src]

impl Display for TextBoundary[src]

impl Eq for TextBoundary[src]

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

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

impl Hash for TextBoundary[src]

impl Ord for TextBoundary[src]

impl PartialEq<TextBoundary> for TextBoundary[src]

impl PartialOrd<TextBoundary> for TextBoundary[src]

impl SetValue for TextBoundary[src]

impl StaticType for TextBoundary[src]

impl StructuralEq for TextBoundary[src]

impl StructuralPartialEq for TextBoundary[src]

Auto Trait Implementations

impl RefUnwindSafe for TextBoundary

impl Send for TextBoundary

impl Sync for TextBoundary

impl Unpin for TextBoundary

impl UnwindSafe for TextBoundary

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.