pub struct FormatStringPart {
pub expression: Vec<Ranged<Token>>,
pub suffix: Ranged<Symbol>,
}Expand description
A part of a format string literal.
Fields§
§expression: Vec<Ranged<Token>>The expression to evaluate and convert to a string.
suffix: Ranged<Symbol>The literal string that follows the expression.
Trait Implementations§
source§impl Clone for FormatStringPart
impl Clone for FormatStringPart
source§fn clone(&self) -> FormatStringPart
fn clone(&self) -> FormatStringPart
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 FormatStringPart
impl Debug for FormatStringPart
source§impl<'de> Deserialize<'de> for FormatStringPart
impl<'de> Deserialize<'de> for FormatStringPart
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 FormatStringPart
impl Hash for FormatStringPart
source§impl PartialEq for FormatStringPart
impl PartialEq for FormatStringPart
source§impl Serialize for FormatStringPart
impl Serialize for FormatStringPart
impl Eq for FormatStringPart
impl StructuralPartialEq for FormatStringPart
Auto Trait Implementations§
impl Freeze for FormatStringPart
impl RefUnwindSafe for FormatStringPart
impl Send for FormatStringPart
impl Sync for FormatStringPart
impl Unpin for FormatStringPart
impl UnwindSafe for FormatStringPart
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