pub struct Text { /* private fields */ }
Expand description
A matcher for a chunk of text from the input source.
This is slightly more general than a span, since it can specify the content
of the text and the offsets separately, and optionally. Text
values are
intended to recognize various spans.
&str
and Range<usize>
are both convertible to Text
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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