[][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.

GameLisp iterators are always stored on the garbage-collected heap, so they're normally represented by the type Root<GIter>.

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>

Notable traits for Root<GIter>

impl Iterator for Root<GIter> type Item = Result<Val, GError>;
[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]

Auto Trait Implementations

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> IntoElement<Slot> for T where
    T: IntoVal
[src]

impl<T> IntoVal for T where
    T: StaticMarker, 
[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.