pub struct MaybeQuoted<T>{
pub value: T,
}Expand description
Compositional wrapper type that allows quotes or no quotes.
Fields§
§value: TTrait Implementations§
Source§impl<T> Clone for MaybeQuoted<T>
impl<T> Clone for MaybeQuoted<T>
Source§fn clone(&self) -> MaybeQuoted<T>
fn clone(&self) -> MaybeQuoted<T>
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<T> Debug for MaybeQuoted<T>
impl<T> Debug for MaybeQuoted<T>
Source§impl<'de, T> Deserialize<'de> for MaybeQuoted<T>
impl<'de, T> Deserialize<'de> for MaybeQuoted<T>
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<T> Hash for MaybeQuoted<T>
impl<T> Hash for MaybeQuoted<T>
Source§impl<T> PartialEq for MaybeQuoted<T>
impl<T> PartialEq for MaybeQuoted<T>
Source§impl<T> Serialize for MaybeQuoted<T>
impl<T> Serialize for MaybeQuoted<T>
impl<T> Copy for MaybeQuoted<T>
impl<T> Eq for MaybeQuoted<T>
impl<T> StructuralPartialEq for MaybeQuoted<T>
Auto Trait Implementations§
impl<T> Freeze for MaybeQuoted<T>where
T: Freeze,
impl<T> RefUnwindSafe for MaybeQuoted<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeQuoted<T>where
T: Send,
impl<T> Sync for MaybeQuoted<T>where
T: Sync,
impl<T> Unpin for MaybeQuoted<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeQuoted<T>where
T: UnwindSafe,
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