pub enum StringSegment {
Text {
content: String,
span: Span,
},
Interpolation {
expr: Box<Expr>,
is_fluent: bool,
span: Span,
},
}Expand description
A string segment.
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 (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 StringSegment
impl Debug for StringSegment
Source§impl<'de> Deserialize<'de> for StringSegment
impl<'de> Deserialize<'de> for StringSegment
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
impl Eq for StringSegment
Source§impl Hash for StringSegment
impl Hash for StringSegment
Source§impl PartialEq for StringSegment
impl PartialEq for StringSegment
Source§fn eq(&self, other: &StringSegment) -> bool
fn eq(&self, other: &StringSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StringSegment
impl Serialize 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