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