pub enum TextGranularity {
Char,
Word,
Sentence,
Line,
Paragraph,
// some variants omitted
}
Variants§
Trait Implementations§
Source§impl Clone for TextGranularity
impl Clone for TextGranularity
Source§fn clone(&self) -> TextGranularity
fn clone(&self) -> TextGranularity
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 TextGranularity
impl Debug for TextGranularity
Source§impl Display for TextGranularity
impl Display for TextGranularity
Source§impl<'a> FromValue<'a> for TextGranularity
impl<'a> FromValue<'a> for TextGranularity
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for TextGranularity
impl<'a> FromValueOptional<'a> for TextGranularity
unsafe fn from_value_optional(value: &Value) -> Option<Self>
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 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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
Returns the type identifier of
Self
.impl Copy for TextGranularity
impl Eq for TextGranularity
impl StructuralPartialEq for TextGranularity
Auto Trait Implementations§
impl Freeze for TextGranularity
impl RefUnwindSafe for TextGranularity
impl Send for TextGranularity
impl Sync for TextGranularity
impl Unpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.