[][src]Struct listinfo::EntryFragment

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

Represents a single ListInfo entry fragment.

Implementations

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

pub fn entry(&'a self, key: &str) -> Option<&'a EntryNode<'a>>[src]

Gets the entry node with the given key if it exists.

pub fn unique(&'a self, key: &str) -> Option<&'a EntryData>[src]

Gets the entry node with the given key if it exists.

This is shorthand for fragment.entry("key").map(|f| f.unique())

pub fn iter(&'a self, key: &str) -> Option<impl Iterator<Item = &'a EntryData>>[src]

Gets the values with the given key if it exists.

This is shorthand for fragment.entry("key").map(|f| f.iter())

Trait Implementations

impl<'a> Debug for EntryFragment<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for EntryFragment<'a>

impl<'a> Send for EntryFragment<'a>

impl<'a> Sync for EntryFragment<'a>

impl<'a> Unpin for EntryFragment<'a>

impl<'a> UnwindSafe for EntryFragment<'a>

Blanket Implementations

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

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

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

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.