pub struct PickleDbIteratorItem<'a> { /* fields omitted */ }
The object returned in each iteration when iterating over keys and values in PickleDB
Get the value of the key.
The key is always a string but the value can be of any type. It's the user's
responsibility to know the value type and give it while calling this method.
If the key doesn't exist or if the type is wrong, None
will be returned.
Otherwise Some(V)
will be returned.
Since the values are stored in a serialized way the returned object is
not a reference to the value stored in a DB but actually a new instance of it.
The method returns Some(V)
if deserialization succeeds or None
otherwise.
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more