pub fn from_bytes(text: &[u8]) -> Result<Self, CigarError> {
        Self::from_str(
            str::from_utf8(text).map_err(|_| {
                CigarError::UnexpectedOperation("unable to parse as UTF8".to_owned())
            })?,
        )
    }
/// Create a CigarString from given bytes.
Create a CigarString from given bytes.
Create a CigarString from given bytes .
pub fn from_bytes(text: &[u8]) -> Result<Self, CigarError> {
        Self::from_str(
            str::from_utf8(text).map_err(|_| {
                CigarError::UnexpectedOperation("unable to parse as UTF8".to_owned())
            })?,
        )
    }
pub fn from_bytes ( text : & [ u8 ] ) -> Result < Self , CigarError > { Self :: from_str ( str :: from_utf8 ( text ) . map_err ( | _ | { CigarError :: UnexpectedOperation ( " " . to_owned ( ) ) } ) ? , ) }
Create a CigarString from given bytes.
Create a CigarString from given bytes .
text
&[u8]
text
&[u8]