/// Folds this item into a UTF-8 string.
Folds this item into a UTF-8 string.
Folds this item into a UTF - 8 string .
pub fn into_utf8(self) -> Result<&'i str, Error> {
        match self {
            Item::Scalar(Scalar::Utf8(b)) => Ok(b),
            _ => Err(Error::BadEncoding),
        }
    }
pub fn into_utf8 ( self ) -> Result < & ' i str , Error > { match self { Item :: Scalar ( Scalar :: Utf8 ( b ) ) => Ok ( b ) , _ => Err ( Error :: BadEncoding ) , } }
Folds this item into a UTF-8 string.
Folds this item into a UTF - 8 string .
self