pub enum MirStrPart {
Literal(String),
Expr(Spanned<MirExpr>),
}Expand description
Part of an interpolated string.
Variants§
Literal(String)
Literal text between interpolation slots.
Expr(Spanned<MirExpr>)
{expr} — value gets stringified at runtime.
Trait Implementations§
Source§impl Clone for MirStrPart
impl Clone for MirStrPart
Source§fn clone(&self) -> MirStrPart
fn clone(&self) -> MirStrPart
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 moreAuto Trait Implementations§
impl !Freeze for MirStrPart
impl RefUnwindSafe for MirStrPart
impl Send for MirStrPart
impl Sync for MirStrPart
impl Unpin for MirStrPart
impl UnsafeUnpin for MirStrPart
impl UnwindSafe for MirStrPart
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