pub struct LiteralData {
pub text: String,
pub raw_text: Option<String>,
pub value: Option<f64>,
}Expand description
Data for string literals (StringLiteral, template parts)
Fields§
§text: String§raw_text: Option<String>§value: Option<f64>For numeric literals only
Trait Implementations§
Source§impl Clone for LiteralData
impl Clone for LiteralData
Source§fn clone(&self) -> LiteralData
fn clone(&self) -> LiteralData
Returns a duplicate 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 LiteralData
impl Debug for LiteralData
Source§impl<'de> Deserialize<'de> for LiteralData
impl<'de> Deserialize<'de> for LiteralData
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
Auto Trait Implementations§
impl Freeze for LiteralData
impl RefUnwindSafe for LiteralData
impl Send for LiteralData
impl Sync for LiteralData
impl Unpin for LiteralData
impl UnsafeUnpin for LiteralData
impl UnwindSafe for LiteralData
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