Enum serde_lite::Intermediate
source · pub enum Intermediate {
None,
Bool(bool),
Number(Number),
String(Cow<'static, str>),
Array(Vec<Intermediate>),
Map(Map),
}
Expand description
Intermediate data representation.
The format is similar to JSON. It can be serialized/deserialized using serde.
Variants§
Implementations§
source§impl Intermediate
impl Intermediate
sourcepub fn as_array(&self) -> Option<&[Intermediate]>
pub fn as_array(&self) -> Option<&[Intermediate]>
Get the value as an array (if possible).
Trait Implementations§
source§impl Clone for Intermediate
impl Clone for Intermediate
source§fn clone(&self) -> Intermediate
fn clone(&self) -> Intermediate
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 Debug for Intermediate
impl Debug for Intermediate
source§impl<'de> Deserialize<'de> for Intermediate
impl<'de> Deserialize<'de> for Intermediate
source§fn deserialize<D>(deserializer: D) -> Result<Intermediate, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Intermediate, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Deserialize for Intermediate
impl Deserialize for Intermediate
source§fn deserialize(input: &Intermediate) -> Result<Self, Error>
fn deserialize(input: &Intermediate) -> Result<Self, Error>
Deserialize an object instance.
source§impl From<&str> for Intermediate
impl From<&str> for Intermediate
source§impl From<()> for Intermediate
impl From<()> for Intermediate
source§impl<K, V> From<HashMap<K, V>> for Intermediatewhere
K: Into<Cow<'static, str>>,
V: Into<Intermediate>,
impl<K, V> From<HashMap<K, V>> for Intermediatewhere K: Into<Cow<'static, str>>, V: Into<Intermediate>,
source§impl From<Number> for Intermediate
impl From<Number> for Intermediate
source§impl From<String> for Intermediate
impl From<String> for Intermediate
source§impl<T> From<Vec<T>> for Intermediatewhere
Intermediate: From<T>,
impl<T> From<Vec<T>> for Intermediatewhere Intermediate: From<T>,
source§impl From<bool> for Intermediate
impl From<bool> for Intermediate
source§impl From<f32> for Intermediate
impl From<f32> for Intermediate
source§impl From<f64> for Intermediate
impl From<f64> for Intermediate
source§impl From<i16> for Intermediate
impl From<i16> for Intermediate
source§impl From<i32> for Intermediate
impl From<i32> for Intermediate
source§impl From<i64> for Intermediate
impl From<i64> for Intermediate
source§impl From<i8> for Intermediate
impl From<i8> for Intermediate
source§impl From<u16> for Intermediate
impl From<u16> for Intermediate
source§impl From<u32> for Intermediate
impl From<u32> for Intermediate
source§impl From<u64> for Intermediate
impl From<u64> for Intermediate
source§impl From<u8> for Intermediate
impl From<u8> for Intermediate
source§impl Serialize for Intermediate
impl Serialize for Intermediate
source§impl Serialize for Intermediate
impl Serialize for Intermediate
Auto Trait Implementations§
impl RefUnwindSafe for Intermediate
impl Send for Intermediate
impl Sync for Intermediate
impl Unpin for Intermediate
impl UnwindSafe for Intermediate
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