fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>
    where
        E: Error,
    {
        Err(Error::invalid_type(Unexpected::Bool(v), &self))
    }
/// The input contains a boolean.
///
/// The default implementation fails with a type error.
The input contains a boolean.
The default implementation fails with a type error.
The input contains a boolean . The default implementation fails with a type error .
fn visit_bool<E>(self, v: bool) -> Result<Self::Value, E>
    where
        E: Error,
    {
        Err(Error::invalid_type(Unexpected::Bool(v), &self))
    }
fn visit_bool < E > ( self , v : bool ) -> Result < Self :: Value , E > where E : Error , { Err ( Error :: invalid_type ( Unexpected :: Bool ( v ) , & self ) ) }
The input contains a boolean.
The input contains a boolean .
self
v
bool
self
v
bool