pub enum Part<'a> {
Text(&'a str),
Token(&'a str),
Unclosed(&'a str),
}Expand description
A piece of text: plain text, a {token}, or a { with no } after it
(with the rest of the text).
Variants§
Text(&'a str)
Text outside braces.
Token(&'a str)
The inside of a {...}.
Unclosed(&'a str)
A { with no closing }, and everything after it.
Trait Implementations§
impl<'a> Copy for Part<'a>
impl<'a> Eq for Part<'a>
impl<'a> StructuralPartialEq for Part<'a>
Auto Trait Implementations§
impl<'a> Freeze for Part<'a>
impl<'a> RefUnwindSafe for Part<'a>
impl<'a> Send for Part<'a>
impl<'a> Sync for Part<'a>
impl<'a> Unpin for Part<'a>
impl<'a> UnsafeUnpin for Part<'a>
impl<'a> UnwindSafe for Part<'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