pub enum StrPart<S, F> {
Str(S),
Filter(F),
Char(char),
}Expand description
Component of a string potentially containing escape sequences.
S is a type of strings (without escape sequences), and
F is a type of interpolated filters.
Variants§
Str(S)
string without escape sequences
Filter(F)
interpolated filter (\(...))
Char(char)
escaped character (e.g. \n, t, \u0041)
Trait Implementations§
Auto Trait Implementations§
impl<S, F> Freeze for StrPart<S, F>
impl<S, F> RefUnwindSafe for StrPart<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for StrPart<S, F>
impl<S, F> Sync for StrPart<S, F>
impl<S, F> Unpin for StrPart<S, F>
impl<S, F> UnwindSafe for StrPart<S, F>where
S: UnwindSafe,
F: UnwindSafe,
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