fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value>
    where
        V: de::Visitor<'de>,
    {
        match self.tag {
            0x01 => {
                let reader = &mut self.outer.reader;
                let value = raw::read_bare_byte(reader)?;
                match value {
                    0 => visitor.visit_bool(false),
                    1 => visitor.visit_bool(true),
                    b => Err(Error::NonBooleanByte(b)),
                }
            }
            _ => Err(Error::TagMismatch(self.tag, 0x01)),
        }
    }
/// Deserialize bool values from a byte. Fail if that byte is not 0 or 1.
Deserialize bool values from a byte. Fail if that byte is not 0 or 1.
Deserialize bool values from a byte . Fail if that byte is not 0 or 1 .
fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value>
    where
        V: de::Visitor<'de>,
    {
        match self.tag {
            0x01 => {
                let reader = &mut self.outer.reader;
                let value = raw::read_bare_byte(reader)?;
                match value {
                    0 => visitor.visit_bool(false),
                    1 => visitor.visit_bool(true),
                    b => Err(Error::NonBooleanByte(b)),
                }
            }
            _ => Err(Error::TagMismatch(self.tag, 0x01)),
        }
    }
fn deserialize_bool < V > ( self , visitor : V ) -> Result < V :: Value > where V : de :: Visitor < ' de > , { match self . tag { 0x01 => { let reader = & mut self . outer . reader ; let value = raw :: read_bare_byte ( reader ) ? ; match value { 0 => visitor . visit_bool ( false ) , 1 => visitor . visit_bool ( true ) , b => Err ( Error :: NonBooleanByte ( b ) ) , } } _ => Err ( Error :: TagMismatch ( self . tag , 0x01 ) ) , } }
Deserialize bool values from a byte.
Deserialize bool values from a byte .
self
visitor
V