Trait swimos_encoding::TryFromUtf8Bytes
source · pub trait TryFromUtf8Bytes: Sized {
// Required method
fn try_from_utf8_bytes(bytes: Bytes) -> Result<Self, Utf8Error>;
}Expand description
Trait for types that can be created from a buffer that potentially contains UTF-8. This duplicates
the standard library TryFrom but allows us to implement it for types we do not control.
Required Methods§
fn try_from_utf8_bytes(bytes: Bytes) -> Result<Self, Utf8Error>
Object Safety§
This trait is not object safe.