[−][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>
[src]
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>
[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>(&'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<'b, V: FromVal>(&'b self) -> IterTabValuesTo<'a, 'b, V>
[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]
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]
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,
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.
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>,