#[non_exhaustive]pub enum TextBoundary {
Char,
WordStart,
WordEnd,
SentenceStart,
SentenceEnd,
LineStart,
LineEnd,
}Expand description
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 atk_text_get_string_at_offset instead.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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§
Source§impl Clone for TextBoundary
impl Clone for TextBoundary
Source§fn clone(&self) -> TextBoundary
fn clone(&self) -> TextBoundary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TextBoundary
Source§impl Debug for TextBoundary
impl Debug for TextBoundary
Source§impl Display for TextBoundary
impl Display for TextBoundary
impl Eq for TextBoundary
Source§impl From<TextBoundary> for Value
impl From<TextBoundary> for Value
Source§fn from(v: TextBoundary) -> Self
fn from(v: TextBoundary) -> Self
Source§impl<'a> FromValue<'a> for TextBoundary
impl<'a> FromValue<'a> for TextBoundary
Source§type Checker = GenericValueTypeChecker<TextBoundary>
type Checker = GenericValueTypeChecker<TextBoundary>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for TextBoundary
impl HasParamSpec for TextBoundary
type ParamSpec = ParamSpecEnum
Source§type SetValue = TextBoundary
type SetValue = TextBoundary
type BuilderFn = fn(&str, TextBoundary) -> ParamSpecEnumBuilder<'_, TextBoundary>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for TextBoundary
impl Hash for TextBoundary
Source§impl Ord for TextBoundary
impl Ord for TextBoundary
Source§fn cmp(&self, other: &TextBoundary) -> Ordering
fn cmp(&self, other: &TextBoundary) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TextBoundary
impl PartialEq for TextBoundary
Source§impl PartialOrd for TextBoundary
impl PartialOrd for TextBoundary
Source§impl StaticType for TextBoundary
impl StaticType for TextBoundary
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for TextBoundary
Source§impl ToValue for TextBoundary
impl ToValue for TextBoundary
Source§impl ValueType for TextBoundary
impl ValueType for TextBoundary
Source§type Type = TextBoundary
type Type = TextBoundary
Type from. Read moreAuto Trait Implementations§
impl Freeze for TextBoundary
impl RefUnwindSafe for TextBoundary
impl Send for TextBoundary
impl Sync for TextBoundary
impl Unpin for TextBoundary
impl UnsafeUnpin for TextBoundary
impl UnwindSafe for TextBoundary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.