pub struct LocalStorage;
Expand description

Provides API to deal with localStorage

Trait Implementations

Formats the value using the given formatter. Read more

Get the raw web_sys::Storage instance

Get the value for the specified key

Get all the stored keys and their values

Insert a value for the specified key

Remove a key and it’s stored value

Remove all the stored data

Get the number of items stored

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.