fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>
    where
        E: Error,
    {
        let _ = v;
        Err(Error::invalid_type(Unexpected::Bytes(v), &self))
    }
/// The input contains a byte array. The lifetime of the byte array is
/// ephemeral and it may be destroyed after this method returns.
///
/// This method allows the `Deserializer` to avoid a copy by retaining
/// ownership of any buffered data. `Deserialize` implementations that do
/// not benefit from taking ownership of `Vec<u8>` data should indicate that
/// to the deserializer by using `Deserializer::deserialize_bytes` rather
/// than `Deserializer::deserialize_byte_buf`.
///
/// It is never correct to implement `visit_byte_buf` without implementing
/// `visit_bytes`. Implement neither, both, or just `visit_bytes`.
The input contains a byte array. The lifetime of the byte array is
ephemeral and it may be destroyed after this method returns.

This method allows the `Deserializer` to avoid a copy by retaining
ownership of any buffered data.

It is never correct to implement `visit_byte_buf` without implementing
`visit_bytes`. Implement neither, both, or just `visit_bytes`.
The input contains a byte array . The lifetime of the byte array is ephemeral and it may be destroyed after this method returns . This method allows the ` Deserializer ` to avoid a copy by retaining ownership of any buffered data . It is never correct to implement ` visit_byte_buf ` without implementing ` visit_bytes ` . Implement neither both or just ` visit_bytes ` .
fn visit_bytes<E>(self, v: &[u8]) -> Result<Self::Value, E>
    where
        E: Error,
    {
        let _ = v;
        Err(Error::invalid_type(Unexpected::Bytes(v), &self))
    }
fn visit_bytes < E > ( self , v : & [ u8 ] ) -> Result < Self :: Value , E > where E : Error , { let _ = v ; Err ( Error :: invalid_type ( Unexpected :: Bytes ( v ) , & self ) ) }
The input contains a byte array.
The input contains a byte array .
self
v
&[u8]
self
v
&[u8]