pub struct Literal<'a> {
pub value: Cow<'a, str>,
}Expand description
A literal: its cooked value (escapes processed). Whether it was quoted is not data-model information and is not kept.
Fields§
§value: Cow<'a, str>The string value.
Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Literal<'a>
Available on crate feature serde only.
impl<'de: 'a, 'a> Deserialize<'de> for Literal<'a>
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<'a> Eq for Literal<'a>
impl<'a> StructuralPartialEq for Literal<'a>
Auto Trait Implementations§
impl<'a> Freeze for Literal<'a>
impl<'a> RefUnwindSafe for Literal<'a>
impl<'a> Send for Literal<'a>
impl<'a> Sync for Literal<'a>
impl<'a> Unpin for Literal<'a>
impl<'a> UnsafeUnpin for Literal<'a>
impl<'a> UnwindSafe for Literal<'a>
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