[−][src]Struct glsp_engine::TabEntries
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>(&'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<'b, K: FromVal, V: FromVal>(&'b self) -> IterTabTo<'a, 'b, K, V>ⓘ
[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>(&'b self) -> IterTabKeys<'a, 'b>ⓘNotable traits for IterTabKeys<'a, 'b>
impl<'a, 'b> Iterator for IterTabKeys<'a, 'b> type Item = Val;
[src]
Notable traits for IterTabKeys<'a, 'b>
impl<'a, 'b> Iterator for IterTabKeys<'a, 'b> type Item = Val;
Creates an infallible iterator over this table's keys.
The iterator's item type will be Val
.
pub fn keys_to<'b, K: FromVal>(&'b self) -> IterTabKeysTo<'a, 'b, K>ⓘNotable traits for IterTabKeysTo<'a, 'b, K>
impl<'a, 'b, K: FromVal> Iterator for IterTabKeysTo<'a, 'b, K> type Item = GResult<K>;
[src]
Notable traits for IterTabKeysTo<'a, 'b, K>
impl<'a, 'b, K: FromVal> Iterator for IterTabKeysTo<'a, 'b, K> type Item = GResult<K>;
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>(&'b self) -> IterTabValues<'a, 'b>ⓘNotable traits for IterTabValues<'a, 'b>
impl<'a, 'b> Iterator for IterTabValues<'a, 'b> type Item = Val;
[src]
Notable traits for IterTabValues<'a, 'b>
impl<'a, 'b> Iterator for IterTabValues<'a, 'b> type Item = Val;
Creates an infallible iterator over this table's values.
The iterator's item type will be Val
.
pub fn values_to<'b, V: FromVal>(&'b self) -> IterTabValuesTo<'a, 'b, V>ⓘNotable traits for IterTabValuesTo<'a, 'b, V>
impl<'a, 'b, V: FromVal> Iterator for IterTabValuesTo<'a, 'b, V> type Item = GResult<V>;
[src]
Notable traits for IterTabValuesTo<'a, 'b, V>
impl<'a, 'b, V: FromVal> Iterator for IterTabValuesTo<'a, 'b, V> type Item = GResult<V>;
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]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for TabEntries<'a>
[src]
impl<'a> !Send for TabEntries<'a>
[src]
impl<'a> !Sync for TabEntries<'a>
[src]
impl<'a> Unpin for TabEntries<'a>
[src]
impl<'a> !UnwindSafe for TabEntries<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,