[][src]Struct pickledb::PickleDbListIteratorItem

pub struct PickleDbListIteratorItem<'a> { /* fields omitted */ }

The object returned in each iteration when iterating over a PickleDB list

Methods

impl<'a> PickleDbListIteratorItem<'a>[src]

pub fn get_item<V>(&self) -> Option<V> where
    V: DeserializeOwned
[src]

Get the item in the current position.

This method retrieves the item in the current position. It's the user's responsibility to know what is the correct type of the item and give it while calling this method. Since the item in the lists are stored in a serialized way the returned object is not a reference to the item stored in a DB but actually a new instance of it. The method returns Some(V) if deserialization succeeds or None otherwise.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]