pub enum InterpPart {
Text(String),
Interp(Box<Expr>),
}Expand description
One segment of a CIP-261 interpolated string literal.
Variants§
Text(String)
Literal text (escaped braces already resolved to plain braces).
Interp(Box<Expr>)
An {expression} embed.
Trait Implementations§
Source§impl Clone for InterpPart
impl Clone for InterpPart
Source§impl Debug for InterpPart
impl Debug for InterpPart
Source§impl PartialEq for InterpPart
impl PartialEq for InterpPart
impl StructuralPartialEq for InterpPart
Auto Trait Implementations§
impl Forget for InterpPart
impl Freeze for InterpPart
impl Move for InterpPart
impl RefUnwindSafe for InterpPart
impl Send for InterpPart
impl Sync for InterpPart
impl Unpin for InterpPart
impl UnsafeUnpin for InterpPart
impl UnwindSafe for InterpPart
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