idb-sys 0.2.2

A callback based crate for interacting with IndexedDB on browsers using webassembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use web_sys::DomStringList;

pub fn dom_string_list_to_vec(list: &DomStringList) -> Vec<String> {
    let mut vec = vec![];

    for i in 0..list.length() {
        if let Some(s) = list.get(i) {
            vec.push(s);
        }
    }

    vec
}