pub enum StringFragment {
Text(String),
Expr(Expr),
}Expand description
An fragment of a string expression
Variants§
Trait Implementations§
Source§impl Clone for StringFragment
impl Clone for StringFragment
Source§fn clone(&self) -> StringFragment
fn clone(&self) -> StringFragment
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 StringFragment
impl Debug for StringFragment
Source§impl<'de> Deserialize<'de> for StringFragment
impl<'de> Deserialize<'de> for StringFragment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StringFragment
impl PartialEq for StringFragment
Source§impl Serialize for StringFragment
impl Serialize for StringFragment
impl StructuralPartialEq for StringFragment
Auto Trait Implementations§
impl Freeze for StringFragment
impl RefUnwindSafe for StringFragment
impl Send for StringFragment
impl Sync for StringFragment
impl Unpin for StringFragment
impl UnsafeUnpin for StringFragment
impl UnwindSafe for StringFragment
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