public class ResultIteratorKt
| Modifier and Type | Method and Description |
|---|---|
static <V,E> java.util.Iterator<V> |
iterator(Result<? extends V,? extends E> $receiver)
Returns an Iterator over the possibly contained value.
The iterator yields one value if the
class Result is class Ok, otherwise throws NoSuchElementException. |
static <V,E> java.util.Iterator<V> |
mutableIterator(Result<? extends V,? extends E> $receiver)
Returns a MutableIterator over the possibly contained value.
The iterator yields one value if the
class Result is class Ok, otherwise throws NoSuchElementException. |
public static <V,E> java.util.Iterator<V> iterator(Result<? extends V,? extends E> $receiver)
Returns an Iterator over the possibly contained value.
The iterator yields one value if the class Result is class Ok, otherwise throws NoSuchElementException.
Rust: Result.iter
class Result,
class Ok,
NoSuchElementException,
Result.iterpublic static <V,E> java.util.Iterator<V> mutableIterator(Result<? extends V,? extends E> $receiver)
Returns a MutableIterator over the possibly contained value.
The iterator yields one value if the class Result is class Ok, otherwise throws NoSuchElementException.