pub enum InterpPart {
Lit(String),
Expr(Expr),
}Expand description
One piece of a string-interpolation expression ("a {b} c"): literal text or
an embedded expression whose display form is spliced in at runtime.
Variants§
Trait Implementations§
Source§impl Clone for InterpPart
impl Clone for InterpPart
Source§fn clone(&self) -> InterpPart
fn clone(&self) -> InterpPart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Freeze 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