pub struct IDLValueVisitor;
Trait Implementations
sourceimpl<'de> Visitor<'de> for IDLValueVisitor
impl<'de> Visitor<'de> for IDLValueVisitor
sourcefn expecting(&self, formatter: &mut Formatter<'_>) -> Result
fn expecting(&self, formatter: &mut Formatter<'_>) -> Result
Format a message stating what data this Visitor expects to receive. Read more
sourcefn visit_bool<E>(self, value: bool) -> Result<IDLValue, E>
fn visit_bool<E>(self, value: bool) -> Result<IDLValue, E>
The input contains a boolean. Read more
sourcefn visit_byte_buf<E: Error>(self, value: Vec<u8>) -> Result<IDLValue, E>
fn visit_byte_buf<E: Error>(self, value: Vec<u8>) -> Result<IDLValue, E>
The input contains a byte array and ownership of the byte array is being
given to the
Visitor
. Read moresourcefn visit_string<E>(self, value: String) -> Result<IDLValue, E>
fn visit_string<E>(self, value: String) -> Result<IDLValue, E>
The input contains a string and ownership of the string is being given
to the
Visitor
. Read moresourcefn visit_str<E>(self, value: &str) -> Result<IDLValue, E>where
E: Error,
fn visit_str<E>(self, value: &str) -> Result<IDLValue, E>where
E: Error,
The input contains a string. The lifetime of the string is ephemeral and
it may be destroyed after this method returns. Read more
sourcefn visit_none<E>(self) -> Result<IDLValue, E>
fn visit_none<E>(self) -> Result<IDLValue, E>
The input contains an optional that is absent. Read more
sourcefn visit_some<D>(self, deserializer: D) -> Result<IDLValue, D::Error>where
D: Deserializer<'de>,
fn visit_some<D>(self, deserializer: D) -> Result<IDLValue, D::Error>where
D: Deserializer<'de>,
The input contains an optional that is present. Read more
sourcefn visit_unit<E>(self) -> Result<IDLValue, E>
fn visit_unit<E>(self) -> Result<IDLValue, E>
The input contains a unit
()
. Read moresourcefn visit_seq<V>(self, visitor: V) -> Result<IDLValue, V::Error>where
V: SeqAccess<'de>,
fn visit_seq<V>(self, visitor: V) -> Result<IDLValue, V::Error>where
V: SeqAccess<'de>,
The input contains a sequence of elements. Read more
sourcefn visit_map<V>(self, visitor: V) -> Result<IDLValue, V::Error>where
V: MapAccess<'de>,
fn visit_map<V>(self, visitor: V) -> Result<IDLValue, V::Error>where
V: MapAccess<'de>,
The input contains a key-value map. Read more
sourcefn visit_enum<V>(self, data: V) -> Result<IDLValue, V::Error>where
V: EnumAccess<'de>,
fn visit_enum<V>(self, data: V) -> Result<IDLValue, V::Error>where
V: EnumAccess<'de>,
The input contains an enum. Read more
sourcefn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where
E: Error,
fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E>where
E: Error,
The input contains a
i128
. Read moresourcefn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where
E: Error,
fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E>where
E: Error,
The input contains a
u128
. Read moresourcefn visit_char<E>(self, v: char) -> Result<Self::Value, E>where
E: Error,
fn visit_char<E>(self, v: char) -> Result<Self::Value, E>where
E: Error,
The input contains a
char
. Read moresourcefn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where
E: Error,
fn visit_borrowed_str<E>(self, v: &'de str) -> Result<Self::Value, E>where
E: Error,
The input contains a string that lives at least as long as the
Deserializer
. Read moresourcefn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where
E: Error,
fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>where
E: Error,
The input contains a byte array. The lifetime of the byte array is
ephemeral and it may be destroyed after this method returns. Read more
sourcefn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where
E: Error,
fn visit_borrowed_bytes<E>(self, v: &'de [u8]) -> Result<Self::Value, E>where
E: Error,
The input contains a byte array that lives at least as long as the
Deserializer
. Read moresourcefn visit_newtype_struct<D>(
self,
deserializer: D
) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn visit_newtype_struct<D>(
self,
deserializer: D
) -> Result<Self::Value, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
The input contains a newtype struct. Read more
Auto Trait Implementations
impl RefUnwindSafe for IDLValueVisitor
impl Send for IDLValueVisitor
impl Sync for IDLValueVisitor
impl Unpin for IDLValueVisitor
impl UnwindSafe for IDLValueVisitor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more