pub trait FromModifiedUtf8<'de>: Sized {
// Required method
fn from_modified_utf8(
modified_utf8: &'de [u8],
) -> Result<Self, FromModifiedUtf8Error>;
}Expand description
A string type which can be decoded from Java’s modified UTF-8.
Required Methods§
fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<Self, FromModifiedUtf8Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<'de> FromModifiedUtf8<'de> for Cow<'de, str>
impl<'de> FromModifiedUtf8<'de> for Cow<'de, str>
fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<Self, FromModifiedUtf8Error>
Source§impl<'de> FromModifiedUtf8<'de> for Cow<'de, JavaStr>
Available on crate feature java_string only.
impl<'de> FromModifiedUtf8<'de> for Cow<'de, JavaStr>
Available on crate feature
java_string only.fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<Self, FromModifiedUtf8Error>
Source§impl<'de> FromModifiedUtf8<'de> for String
impl<'de> FromModifiedUtf8<'de> for String
fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<Self, FromModifiedUtf8Error>
Source§impl<'de> FromModifiedUtf8<'de> for JavaString
Available on crate feature java_string only.
impl<'de> FromModifiedUtf8<'de> for JavaString
Available on crate feature
java_string only.