pub fn from_str(s: &str) -> Language {
        let mut seed = [1u8; 16]; // zeros would break on empty strings
        for (b, s) in s.bytes().zip(seed.iter_mut()) {
            *s = b;
        }
        let mut rng = XorShiftRng::from_seed(seed);
        Language::from_rng(&mut rng)
    }
/// Creates a random language using the provided string as a seed for a
/// pseudo random number genrator. Only the first 16 bytes of the string are
/// use.
Creates a random language using the provided string as a seed for a
pseudo random number genrator. Only the first 16 bytes of the string are
use.
Creates a random language using the provided string as a seed for a pseudo random number genrator . Only the first 16 bytes of the string are use .
pub fn from_str(s: &str) -> Language {
        let mut seed = [1u8; 16]; // zeros would break on empty strings
        for (b, s) in s.bytes().zip(seed.iter_mut()) {
            *s = b;
        }
        let mut rng = XorShiftRng::from_seed(seed);
        Language::from_rng(&mut rng)
    }
pub fn from_str ( s : & str ) -> Language { let mut seed = [ 1u8 ; 16 ] ; // zeros would break on empty strings for ( b , s ) in s . bytes ( ) . zip ( seed . iter_mut ( ) ) { * s = b ; } let mut rng = XorShiftRng :: from_seed ( seed ) ; Language :: from_rng ( & mut rng ) }
Creates a random language using the provided string as a seed for a
pseudo random number genrator.
Creates a random language using the provided string as a seed for a pseudo random number genrator .
s
&str