pub enum TextObject {
Word {
big: bool,
},
Quote(char),
Bracket(char),
Paragraph,
XmlTag,
Sentence,
}Variants§
Word
Quote(char)
Bracket(char)
Paragraph
XmlTag
it / at — XML/HTML-style tag pair. inner = true covers
content between > and </; inner = false covers the open
tag through the close tag inclusive.
Sentence
is / as — sentence: a run ending at ., ?, or !
followed by whitespace or end-of-line. inner = true covers
the sentence text only; inner = false includes trailing
whitespace.
Trait Implementations§
Source§impl Clone for TextObject
impl Clone for TextObject
Source§fn clone(&self) -> TextObject
fn clone(&self) -> TextObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextObject
Source§impl Debug for TextObject
impl Debug for TextObject
impl Eq for TextObject
Source§impl PartialEq for TextObject
impl PartialEq for TextObject
Source§fn eq(&self, other: &TextObject) -> bool
fn eq(&self, other: &TextObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextObject
Auto Trait Implementations§
impl Freeze for TextObject
impl RefUnwindSafe for TextObject
impl Send for TextObject
impl Sync for TextObject
impl Unpin for TextObject
impl UnsafeUnpin for TextObject
impl UnwindSafe for TextObject
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