pub enum StringSegment {
Literal(String),
Expression(String),
}Expand description
A segment of an interpolated string.
Variants§
Trait Implementations§
Source§impl Clone for StringSegment
impl Clone for StringSegment
Source§fn clone(&self) -> StringSegment
fn clone(&self) -> StringSegment
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 StringSegment
impl Debug for StringSegment
Source§impl Display for StringSegment
impl Display for StringSegment
Source§impl PartialEq for StringSegment
impl PartialEq for StringSegment
impl StructuralPartialEq for StringSegment
Auto Trait Implementations§
impl Freeze for StringSegment
impl RefUnwindSafe for StringSegment
impl Send for StringSegment
impl Sync for StringSegment
impl Unpin for StringSegment
impl UnsafeUnpin for StringSegment
impl UnwindSafe for StringSegment
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