#[non_exhaustive]pub enum TextGranularity {
Char,
Word,
Sentence,
Line,
Paragraph,
}Expand description
Text granularity types used for specifying the granularity of the region of text we are interested in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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§
Source§impl Clone for TextGranularity
impl Clone for TextGranularity
Source§fn clone(&self) -> TextGranularity
fn clone(&self) -> TextGranularity
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 TextGranularity
Source§impl Debug for TextGranularity
impl Debug for TextGranularity
Source§impl Display for TextGranularity
impl Display for TextGranularity
impl Eq for TextGranularity
Source§impl From<TextGranularity> for Value
impl From<TextGranularity> for Value
Source§fn from(v: TextGranularity) -> Self
fn from(v: TextGranularity) -> Self
Source§impl<'a> FromValue<'a> for TextGranularity
impl<'a> FromValue<'a> for TextGranularity
Source§type Checker = GenericValueTypeChecker<TextGranularity>
type Checker = GenericValueTypeChecker<TextGranularity>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for TextGranularity
impl HasParamSpec for TextGranularity
type ParamSpec = ParamSpecEnum
Source§type SetValue = TextGranularity
type SetValue = TextGranularity
type BuilderFn = fn(&str, TextGranularity) -> ParamSpecEnumBuilder<'_, TextGranularity>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for TextGranularity
impl Hash for TextGranularity
Source§impl Ord for TextGranularity
impl Ord for TextGranularity
Source§fn cmp(&self, other: &TextGranularity) -> Ordering
fn cmp(&self, other: &TextGranularity) -> 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 TextGranularity
impl PartialEq for TextGranularity
Source§impl PartialOrd for TextGranularity
impl PartialOrd for TextGranularity
Source§impl StaticType for TextGranularity
impl StaticType for TextGranularity
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for TextGranularity
Source§impl ToValue for TextGranularity
impl ToValue for TextGranularity
Source§impl ValueType for TextGranularity
impl ValueType for TextGranularity
Source§type Type = TextGranularity
type Type = TextGranularity
Type from. Read moreAuto Trait Implementations§
impl Freeze for TextGranularity
impl RefUnwindSafe for TextGranularity
impl Send for TextGranularity
impl Sync for TextGranularity
impl Unpin for TextGranularity
impl UnsafeUnpin for TextGranularity
impl UnwindSafe for TextGranularity
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.