pub enum CSharpInterpolationPart {
Text(String),
Expr(CSharpExpr),
ExprFmt(CSharpExpr, String),
}Expand description
Part of a string interpolation $"...".
Variants§
Text(String)
Literal text segment
Expr(CSharpExpr)
{expr} hole
ExprFmt(CSharpExpr, String)
{expr:format} hole with format specifier
Trait Implementations§
Source§impl Clone for CSharpInterpolationPart
impl Clone for CSharpInterpolationPart
Source§fn clone(&self) -> CSharpInterpolationPart
fn clone(&self) -> CSharpInterpolationPart
Returns a duplicate of the value. Read more
1.0.0 · 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 CSharpInterpolationPart
impl Debug for CSharpInterpolationPart
Source§impl PartialEq for CSharpInterpolationPart
impl PartialEq for CSharpInterpolationPart
impl StructuralPartialEq for CSharpInterpolationPart
Auto Trait Implementations§
impl Freeze for CSharpInterpolationPart
impl RefUnwindSafe for CSharpInterpolationPart
impl Send for CSharpInterpolationPart
impl Sync for CSharpInterpolationPart
impl Unpin for CSharpInterpolationPart
impl UnsafeUnpin for CSharpInterpolationPart
impl UnwindSafe for CSharpInterpolationPart
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