pub struct FormatString {
pub initial: Ranged<Symbol>,
pub parts: Vec<FormatStringPart>,
}Expand description
A format string literal.
Fields§
§initial: Ranged<Symbol>The initial portion of the string literal.
parts: Vec<FormatStringPart>The remaining parts that are joined to the intitial string.
Trait Implementations§
source§impl Clone for FormatString
impl Clone for FormatString
source§fn clone(&self) -> FormatString
fn clone(&self) -> FormatString
Returns a copy 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 FormatString
impl Debug for FormatString
source§impl<'de> Deserialize<'de> for FormatString
impl<'de> Deserialize<'de> for FormatString
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 Hash for FormatString
impl Hash for FormatString
source§impl PartialEq for FormatString
impl PartialEq for FormatString
source§impl Serialize for FormatString
impl Serialize for FormatString
impl Eq for FormatString
impl StructuralPartialEq for FormatString
Auto Trait Implementations§
impl Freeze for FormatString
impl RefUnwindSafe for FormatString
impl Send for FormatString
impl Sync for FormatString
impl Unpin for FormatString
impl UnwindSafe for FormatString
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more