pub enum StrPart<S, T> {
Str(S),
Term(T),
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
Term(T)
interpolated term (\(...))
Here, the contained term T must be of the shape
Token(s, Tok::Block(...)) such that the first character of s is ‘(’.
Char(char)
escaped character (e.g. \n, t, \u0041)
Trait Implementations§
Auto Trait Implementations§
impl<S, T> Freeze for StrPart<S, T>
impl<S, T> RefUnwindSafe for StrPart<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for StrPart<S, T>
impl<S, T> Sync for StrPart<S, T>
impl<S, T> Unpin for StrPart<S, T>
impl<S, T> UnwindSafe for StrPart<S, T>where
S: UnwindSafe,
T: 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