[−][src]Struct glsp_engine::GIter
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>ⓘ
[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<GResult<Val>>
[src]
Advances the iterator and returns its next item.
Equivalent to (iter-next! it)
.
pub fn next_back(&self) -> Option<GResult<Val>>
[src]
Advances the iterator from the back and returns its next item.
Equivalent to (iter-next-back! it)
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GIter
[src]
impl !Send for GIter
[src]
impl !Sync for GIter
[src]
impl Unpin for GIter
[src]
impl !UnwindSafe for GIter
[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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,