[][src]Struct glsp::TabEntries

pub struct TabEntries<'a>(_);

An adapter struct which can be used to iterate over the contents of a table.

Created by Tab::entries.

Implementations

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

pub fn iter(&'b self) -> IterTab<'a, 'b>[src]

Creates an infallible iterator over this table's (key, value) pairs.

The iterator's item type will be (Val, Val).

pub fn iter_to<K, V>(&'b self) -> IterTabTo<'a, 'b, K, V> where
    K: FromVal,
    V: FromVal
[src]

Creates a converting iterator over this table's (key, value) pairs.

The iterator can produce any tuple (K, V), where both K and V implement FromVal. Each key/value pair will be wrapped as GResult<(K, V)>, so it will need to be unwrapped using ? before it can be used.

pub fn keys(&'b self) -> IterTabKeys<'a, 'b>[src]

Creates an infallible iterator over this table's keys.

The iterator's item type will be Val.

pub fn keys_to<K>(&'b self) -> IterTabKeysTo<'a, 'b, K> where
    K: FromVal
[src]

Creates a converting iterator over this table's keys.

The iterator can produce any type which implements FromVal. Each key will be wrapped as a GResult<K>, so it will need to be unwrapped using ? before it can be used.

pub fn values(&'b self) -> IterTabValues<'a, 'b>[src]

Creates an infallible iterator over this table's values.

The iterator's item type will be Val.

pub fn values_to<V>(&'b self) -> IterTabValuesTo<'a, 'b, V> where
    V: FromVal
[src]

Creates a converting iterator over this table's values.

The iterator can produce any type which implements FromVal. Each key will be wrapped as a GResult<V>, so it will need to be unwrapped using ? before it can be used.

Trait Implementations

impl<'a, 'b> IntoIterator for &'b TabEntries<'a>[src]

type Item = (Val, Val)

The type of the elements being iterated over.

type IntoIter = IterTab<'a, 'b>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'a> !GSend for TabEntries<'a>

impl<'a> GStore for TabEntries<'a>

impl<'a> !RefUnwindSafe for TabEntries<'a>

impl<'a> !Send for TabEntries<'a>

impl<'a> !Sync for TabEntries<'a>

impl<'a> Unpin for TabEntries<'a>

impl<'a> !UnwindSafe for TabEntries<'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> Erased for T

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.