/// Folds this item into a byte string.
Folds this item into a byte string.
Folds this item into a byte string .
pub fn into_bytes(self) -> Result<&'i [u8], Error> {
        match self {
            Item::Scalar(Scalar::Bytes(b)) => Ok(b),
            _ => Err(Error::BadEncoding),
        }
    }
pub fn into_bytes ( self ) -> Result < & ' i [ u8 ] , Error > { match self { Item :: Scalar ( Scalar :: Bytes ( b ) ) => Ok ( b ) , _ => Err ( Error :: BadEncoding ) , } }
Folds this item into a byte string.
Folds this item into a byte string .
self