set_item

Function set_item 

Source
pub fn set_item(key: &str, value: &str) -> Result<()>
Examples found in repository?
examples/simple.rs (line 2)
1fn main() {
2    web_local_storage_api::set_item("foo", "bar").unwrap();
3    let s = web_local_storage_api::get_item("foo");
4    println!("hey {:?} {:?}", &s, web_local_storage_api::location());
5}