pub enum TypedInterpPart {
Literal(String),
Expr(TypedExpr),
}Expand description
one piece of a typed string interpolation: either literal text, or an
embedded typed expression. matches ast::InterpPart but holds
TypedExpr instead of Expr.
Variants§
Literal(String)
literal text between interpolations (may be empty).
Expr(TypedExpr)
an embedded { expr }, type-checked to a value the conversion
machinery can stringify.
Trait Implementations§
Source§impl Clone for TypedInterpPart
impl Clone for TypedInterpPart
Source§fn clone(&self) -> TypedInterpPart
fn clone(&self) -> TypedInterpPart
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 TypedInterpPart
impl Debug for TypedInterpPart
Source§impl PartialEq for TypedInterpPart
impl PartialEq for TypedInterpPart
Source§fn eq(&self, other: &TypedInterpPart) -> bool
fn eq(&self, other: &TypedInterpPart) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedInterpPart
Auto Trait Implementations§
impl Freeze for TypedInterpPart
impl RefUnwindSafe for TypedInterpPart
impl Send for TypedInterpPart
impl Sync for TypedInterpPart
impl Unpin for TypedInterpPart
impl UnsafeUnpin for TypedInterpPart
impl UnwindSafe for TypedInterpPart
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