Trait valence::nbt::binary::FromModifiedUtf8

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>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<'de> FromModifiedUtf8<'de> for Cow<'de, str>

§

fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<Cow<'de, str>, FromModifiedUtf8Error>

§

impl<'de> FromModifiedUtf8<'de> for Cow<'de, JavaStr>

§

fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<Cow<'de, JavaStr>, FromModifiedUtf8Error>

§

impl<'de> FromModifiedUtf8<'de> for String

§

fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<String, FromModifiedUtf8Error>

§

impl<'de> FromModifiedUtf8<'de> for JavaString

§

fn from_modified_utf8( modified_utf8: &'de [u8], ) -> Result<JavaString, FromModifiedUtf8Error>

Implementors§