pub enum JsonString {
Text(String),
Units(Vec<u16>),
}Expand description
A string or member name of a JSON document: valid text, or the UTF-16 code units of text that holds an unpaired surrogate.
Variants§
Text(String)
A sequence of Unicode scalar values.
Units(Vec<u16>)
Code units that include an unpaired surrogate.
Implementations§
Trait Implementations§
Source§impl Clone for JsonString
impl Clone for JsonString
Source§fn clone(&self) -> JsonString
fn clone(&self) -> JsonString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JsonString
impl Debug for JsonString
impl Eq for JsonString
Source§impl Hash for JsonString
impl Hash for JsonString
Source§impl PartialEq for JsonString
impl PartialEq for JsonString
impl StructuralPartialEq for JsonString
Auto Trait Implementations§
impl Freeze for JsonString
impl RefUnwindSafe for JsonString
impl Send for JsonString
impl Sync for JsonString
impl Unpin for JsonString
impl UnsafeUnpin for JsonString
impl UnwindSafe for JsonString
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,
§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
§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
Compare self to
key and return true if they are equal.