pub struct TranslatedString {
pub span: Span,
pub parts: Vec<StringPart>,
}Fields§
§span: Span§parts: Vec<StringPart>$"…" — same structure as a regular string.
Trait Implementations§
Source§impl Clone for TranslatedString
impl Clone for TranslatedString
Source§fn clone(&self) -> TranslatedString
fn clone(&self) -> TranslatedString
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 TranslatedString
impl Debug for TranslatedString
Source§impl<'de> Deserialize<'de> for TranslatedString
impl<'de> Deserialize<'de> for TranslatedString
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 TranslatedString
impl PartialEq for TranslatedString
Source§impl Serialize for TranslatedString
impl Serialize for TranslatedString
impl StructuralPartialEq for TranslatedString
Auto Trait Implementations§
impl Freeze for TranslatedString
impl RefUnwindSafe for TranslatedString
impl Send for TranslatedString
impl Sync for TranslatedString
impl Unpin for TranslatedString
impl UnsafeUnpin for TranslatedString
impl UnwindSafe for TranslatedString
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