pub fn as_encoded<'a>(&'a self) -> Cow<'a, [u8]> {
		match self {
			NativeOrEncoded::Encoded(e) => Cow::Borrowed(e.as_slice()),
			NativeOrEncoded::Native(n) => Cow::Owned(n.encode()),
		}
	}
/// Return the value as the encoded format.
Return the value as the encoded format.
Return the value as the encoded format .
pub fn as_encoded<'a>(&'a self) -> Cow<'a, [u8]> {
		match self {
			NativeOrEncoded::Encoded(e) => Cow::Borrowed(e.as_slice()),
			NativeOrEncoded::Native(n) => Cow::Owned(n.encode()),
		}
	}
pub fn as_encoded < ' a > ( & ' a self ) -> Cow < ' a , [ u8 ] > { match self { NativeOrEncoded :: Encoded ( e ) => Cow :: Borrowed ( e . as_slice ( ) ) , NativeOrEncoded :: Native ( n ) => Cow :: Owned ( n . encode ( ) ) , } }
Return the value as the encoded format.
Return the value as the encoded format .
&'a self
&'a self