pub fn is_array_of_hashes<T: AsRef<str>>(hashes: &[T]) -> bool {
    if hashes.is_empty() {
        return false;
    }
    for hash in hashes {
        let hash = hash.as_ref();
        match hash.len() {
            90 => {
                if !is_trytes(&hash[0..90]) {
                    return false;
                }
            }
            81 => {
                if !is_trytes(&hash[0..81]) {
                    return false;
                }
            }
            _ => return false,
        }
    }
    true
}
/// Validates that a slice of strings are all valid hashes
Validates that a slice of strings are all valid hashes
Validates that a slice of strings are all valid hashes
pub fn is_array_of_hashes<T: AsRef<str>>(hashes: &[T]) -> bool {
    if hashes.is_empty() {
        return false;
    }
    for hash in hashes {
        let hash = hash.as_ref();
        match hash.len() {
            90 => {
                if !is_trytes(&hash[0..90]) {
                    return false;
                }
            }
            81 => {
                if !is_trytes(&hash[0..81]) {
                    return false;
                }
            }
            _ => return false,
        }
    }
    true
}
pub fn is_array_of_hashes < T : AsRef < str > > ( hashes : & [ T ] ) -> bool { if hashes . is_empty ( ) { return false ; } for hash in hashes { let hash = hash . as_ref ( ) ; match hash . len ( ) { 90 => { if ! is_trytes ( & hash [ 0 .. 90 ] ) { return false ; } } 81 => { if ! is_trytes ( & hash [ 0 .. 81 ] ) { return false ; } } _ => return false , } } true }
Validates that a slice of strings are all valid hashes
Validates that a slice of strings are all valid hashes
hashes
&[T]