pub fn to_byte_array(&self) -> Result<Uint8Array, JsValue> {
        Vec::<u8>::try_extract_from(self.0.clone())
            .map(|v| Uint8Array::from(v.as_slice()))
            .map_err(to_js)
    }
/// Extract byte array, returning error if wrong type
Extract byte array, returning error if wrong type
Extract byte array returning error if wrong type
pub fn to_byte_array(&self) -> Result<Uint8Array, JsValue> {
        Vec::<u8>::try_extract_from(self.0.clone())
            .map(|v| Uint8Array::from(v.as_slice()))
            .map_err(to_js)
    }
pub fn to_byte_array ( & self ) -> Result < Uint8Array , JsValue > { Vec :: < u8 > :: try_extract_from ( self . 0 . clone ( ) ) . map ( | v | Uint8Array :: from ( v . as_slice ( ) ) ) . map_err ( to_js ) }
Extract byte array, returning error if wrong type
Extract byte array returning error if wrong type
&self
&self