#[repr(transparent)]
pub struct DictionaryHandle { /* private fields */ }
Expand description

A low-level interface to Edge Dictionaries.

Unlike the high-level Dictionary, this type has methods that return Result values upon failure, rather than panicking. Additionally, the get() method allows the caller to configure the size of the buffer used to received lookup results from the host.

Implementations

An invalid handle.

Acquire a handle to an Edge Dictionary.

If a handle could not be acquired, an OpenError will be returned.

Lookup a value in this dictionary.

If successful, this function returns Ok(Some(_)) if an entry was found, or Ok(None) if no entry with the given key was found. If the lookup failed, a LookupError will be returned.

Return true if the dictionary contains an entry with the given key.

Return true if the request handle is valid.

Return true if the request handle is invalid.

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.