Trait IDBKeyRangeMethods

Source
pub trait IDBKeyRangeMethods<D>
where D: DomTypes,
{ // Required methods fn Lower(&self, cx: JSContext, retval: MutableHandle<'_, Value>); fn Upper(&self, cx: JSContext, retval: MutableHandle<'_, Value>); fn LowerOpen(&self) -> bool; fn UpperOpen(&self) -> bool; fn Only( cx: JSContext, global: &<D as DomTypes>::GlobalScope, value: Handle<'_, Value>, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>; fn LowerBound( cx: JSContext, global: &<D as DomTypes>::GlobalScope, lower: Handle<'_, Value>, open: bool, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>; fn UpperBound( cx: JSContext, global: &<D as DomTypes>::GlobalScope, upper: Handle<'_, Value>, open: bool, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>; fn Bound( cx: JSContext, global: &<D as DomTypes>::GlobalScope, lower: Handle<'_, Value>, upper: Handle<'_, Value>, lowerOpen: bool, upperOpen: bool, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>; fn Includes( &self, cx: JSContext, key: Handle<'_, Value>, ) -> Result<bool, Error>; }

Required Methods§

Source

fn Lower(&self, cx: JSContext, retval: MutableHandle<'_, Value>)

Source

fn Upper(&self, cx: JSContext, retval: MutableHandle<'_, Value>)

Source

fn LowerOpen(&self) -> bool

Source

fn UpperOpen(&self) -> bool

Source

fn Only( cx: JSContext, global: &<D as DomTypes>::GlobalScope, value: Handle<'_, Value>, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>

Source

fn LowerBound( cx: JSContext, global: &<D as DomTypes>::GlobalScope, lower: Handle<'_, Value>, open: bool, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>

Source

fn UpperBound( cx: JSContext, global: &<D as DomTypes>::GlobalScope, upper: Handle<'_, Value>, open: bool, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>

Source

fn Bound( cx: JSContext, global: &<D as DomTypes>::GlobalScope, lower: Handle<'_, Value>, upper: Handle<'_, Value>, lowerOpen: bool, upperOpen: bool, ) -> Result<Root<Dom<<D as DomTypes>::IDBKeyRange>>, Error>

Source

fn Includes(&self, cx: JSContext, key: Handle<'_, Value>) -> Result<bool, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§