[−][src]Enum serde_reflection::Format
Serde-based serialization format for anonymous "value" types.
Variants
A format whose value is initially unknown. Used internally for tracing. Not (de)serializable.
TypeName(String)
The name of a container.
The format of Option<T>
.
A sequence, e.g. the format of Vec<Foo>
.
A map, e.g. the format of BTreeMap<K, V>
.
A tuple, e.g. the format of (Foo, Bar)
.
Alias for (Foo, ... Foo)
.
E.g. the format of [Foo; N]
.
Implementations
impl Format
[src]
Trait Implementations
impl Clone for Format
[src]
impl Debug for Format
[src]
impl Default for Format
[src]
impl<'de> Deserialize<'de> for Format
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Format
[src]
impl FormatHolder for Format
[src]
fn visit<'a>(
&'a self,
f: &mut dyn FnMut(&'a Format) -> Result<()>
) -> Result<()>
[src]
&'a self,
f: &mut dyn FnMut(&'a Format) -> Result<()>
) -> Result<()>
fn visit_mut(
&mut self,
f: &mut dyn FnMut(&mut Format) -> Result<()>
) -> Result<()>
[src]
&mut self,
f: &mut dyn FnMut(&mut Format) -> Result<()>
) -> Result<()>
fn unify(&mut self, format: Format) -> Result<()>
[src]
Unify the newly "traced" value format
into the current format.
Note that there should be no TupleArray
s at this point.
fn is_unknown(&self) -> bool
[src]
fn normalize(&mut self) -> Result<()>
[src]
fn reduce(&mut self)
[src]
impl PartialEq<Format> for Format
[src]
impl Serialize for Format
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Format
[src]
impl StructuralPartialEq for Format
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Format
impl !Send for Format
impl !Sync for Format
impl Unpin for Format
impl !UnwindSafe for Format
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,