pub struct Text<'a> {
pub text: &'a str,
pub at: usize,
}Expand description
A piece of the rule: its text without the blanks around it, and where it starts.
Fields§
§text: &'a strThe trimmed text, borrowed from the rule.
at: usizeByte offset in the rule.
Trait Implementations§
impl<'a> Copy for Text<'a>
impl<'a> Eq for Text<'a>
impl<'a> StructuralPartialEq for Text<'a>
Auto Trait Implementations§
impl<'a> Forget for Text<'a>
impl<'a> Freeze for Text<'a>
impl<'a> Move for Text<'a>
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Send for Text<'a>
impl<'a> Sync for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnsafeUnpin for Text<'a>
impl<'a> UnwindSafe for Text<'a>
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