pub trait GenericArrayStringExt<N>{
// Required methods
fn generic_from(
string: &str,
) -> Result<GenericArrayString<N>, CapacityError<&str>>;
fn generic_from_byte_string<A>(
byte_string: &A,
) -> Result<GenericArrayString<N>, Utf8Error>
where A: Into<GenericArray<u8, N>> + AsRef<[u8]>;
}
Expand description
Extension trait for GenericArrayString
.
See its impl on GenericArrayString
for more info.
Required Methods§
fn generic_from( string: &str, ) -> Result<GenericArrayString<N>, CapacityError<&str>>
fn generic_from_byte_string<A>( byte_string: &A, ) -> Result<GenericArrayString<N>, Utf8Error>
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.