[][src]Struct glsp::GIter

pub struct GIter { /* fields omitted */ }

The iter primitive type.

The name GIter was chosen to avoid confusion with Rust's iterators.

It's possible to use a Root<GIter> as a Rust iterator. However, collection types like Arr also provide methods to create native Rust iterators, which will generally have much better performance.

Implementations

impl GIter[src]

pub fn shallow_clone(&self) -> Root<GIter>[src]

Creates a shallow copy of the iterator.

Equivalent to (clone it).

pub fn is_finished(&self) -> bool[src]

Returns true if the iterator has finished.

Equivalent to (iter-finished? it).

pub fn len(&self) -> GIterLen[src]

Returns the iterator's remaining length.

Equivalent to (len it).

pub fn is_double_ended(&self) -> bool[src]

Returns true if the iterator is double-ended.

Equivalent to (iter-double-ended? it).

pub fn next(&self) -> Option<Result<Val, GError>>[src]

Advances the iterator and returns its next item.

Equivalent to (iter-next! it).

pub fn next_back(&self) -> Option<Result<Val, GError>>[src]

Advances the iterator from the back and returns its next item.

Equivalent to (iter-next-back! it).

Trait Implementations

impl Debug for GIter[src]

impl Display for GIter[src]

impl<'a, 'r> MakeArg<'a> for &'r GIter where
    'a: 'r, 
[src]

Auto Trait Implementations

impl !GSend for GIter

impl GStore for GIter

impl !RefUnwindSafe for GIter

impl !Send for GIter

impl !Sync for GIter

impl Unpin for GIter

impl !UnwindSafe for GIter

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> ToString for T where
    T: Display + ?Sized
[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.