Trait nuts_bytes::TakeStringError
source · pub trait TakeStringError: TakeBytesError {
// Required method
fn invalid_string(err: FromUtf8Error) -> Self;
}
Expand description
Trait describes an error when
converting into a String
.
Required Methods§
sourcefn invalid_string(err: FromUtf8Error) -> Self
fn invalid_string(err: FromUtf8Error) -> Self
Creates an error, where the byte data is not valid UTF-8.
Object Safety§
This trait is not object safe.