Struct serde_utils::quoted_u8::MaybeQuoted
source · pub struct MaybeQuoted<T>{
pub value: T,
}
Expand description
Compositional wrapper type that allows quotes or no quotes.
Fields§
§value: T
Trait 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 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<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)