pub struct PassthroughParser;
Expand description

Parser that just passes the value to visit_str.

Trait Implementations§

source§

impl BoolParser for PassthroughParser

source§

fn parse<'de, V>(self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

impl Clone for PassthroughParser

source§

fn clone(&self) -> PassthroughParser

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl MapParser for PassthroughParser

source§

fn parse_map<'de, V, B, N, S, T, E>( &self, _options: Options<B, N, S, Self, T, E>, value: &str, visitor: V ) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

impl NumParser for PassthroughParser

source§

fn parse_i8<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_i16<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_i32<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_i64<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_i128<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_u8<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_u16<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_u32<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_u64<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_u128<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_f32<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

fn parse_f64<'de, V>(&self, value: &str, visitor: V) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

impl SeqParser for PassthroughParser

source§

fn parse_seq<'de, V, B, N, M, T, E>( &self, _options: Options<B, N, Self, M, T, E>, value: &str, visitor: V ) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

impl StructParser for PassthroughParser

source§

fn parse_struct<'de, V, B, N, S, M, E>( &self, _options: Options<B, N, S, M, Self, E>, value: &str, _name: &'static str, _fields: &'static [&'static str], visitor: V ) -> Result<V::Value, Error>where V: Visitor<'de>,

source§

impl Copy for PassthroughParser

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.