pub enum FPart {
Text(String),
Expr(Vec<Token>, Span),
}Expand description
A part of an interpolated string.
Variants§
Text(String)
Text, with escapes resolved and {{ / }} turned into single braces.
Expr(Vec<Token>, Span)
An interpolation: the tokens of its expression, ending with an Eof token at the closing
}, and the span of the braces with their content.
Trait Implementations§
impl StructuralPartialEq for FPart
Auto Trait Implementations§
impl Freeze for FPart
impl RefUnwindSafe for FPart
impl Send for FPart
impl Sync for FPart
impl Unpin for FPart
impl UnsafeUnpin for FPart
impl UnwindSafe for FPart
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