fn generate_random_array_string() -> Result<ArrayString10, error::OutOfBounds> {
    use rand::{distributions::Alphanumeric, Rng};
    let s: String = rand::thread_rng()
        .sample_iter(&Alphanumeric)
        .take(10)
        .collect();
    ArrayString10::try_from_str(s)
}
/// Generates random array string with fixed length, otherwise returns an error.
/// ```rust
/// let s = generate_random_array_string();
/// ```
Generates random array string with fixed length, otherwise returns an error.
Generates random array string with fixed length otherwise returns an error .
fn generate_random_array_string() -> Result<ArrayString10, error::OutOfBounds> {
    use rand::{distributions::Alphanumeric, Rng};
    let s: String = rand::thread_rng()
        .sample_iter(&Alphanumeric)
        .take(10)
        .collect();
    ArrayString10::try_from_str(s)
}
fn generate_random_array_string ( ) -> Result < ArrayString10 , error :: OutOfBounds > { use rand :: { distributions :: Alphanumeric , Rng } ; let s : String = rand :: thread_rng ( ) . sample_iter ( & Alphanumeric ) . take ( 10 ) . collect ( ) ; ArrayString10 :: try_from_str ( s ) }
Generates random array string with fixed length, otherwise returns an error.
Generates random array string with fixed length otherwise returns an error .