pub(crate) trait StorageMethods<D: DomTypes> {
    // Required methods
    fn Length(&self) -> u32;
    fn Key(&self, index: u32) -> Option<DOMString>;
    fn GetItem(&self, name: DOMString) -> Option<DOMString>;
    fn SetItem(&self, name: DOMString, value: DOMString) -> Fallible<()>;
    fn RemoveItem(&self, name: DOMString);
    fn Clear(&self);
    fn SupportedPropertyNames(&self) -> Vec<DOMString>;
    fn NamedGetter(&self, name: DOMString) -> Option<DOMString>;
    fn NamedSetter(&self, name: DOMString, value: DOMString) -> Fallible<()>;
    fn NamedDeleter(&self, name: DOMString);
}

Required Methods§

Source

fn Length(&self) -> u32

Source

fn Key(&self, index: u32) -> Option<DOMString>

Source

fn GetItem(&self, name: DOMString) -> Option<DOMString>

Source

fn SetItem(&self, name: DOMString, value: DOMString) -> Fallible<()>

Source

fn RemoveItem(&self, name: DOMString)

Source

fn Clear(&self)

Source

fn SupportedPropertyNames(&self) -> Vec<DOMString>

Source

fn NamedGetter(&self, name: DOMString) -> Option<DOMString>

Source

fn NamedSetter(&self, name: DOMString, value: DOMString) -> Fallible<()>

Source

fn NamedDeleter(&self, name: DOMString)

Implementors§