[−][src]Struct source::Source
Methods
impl<A: 'static> Source<A>
[src]
pub fn next(&mut self) -> Option<A>
[src]
pub fn has_next(&mut self) -> bool
[src]
pub fn new<F: FnMut() -> Option<A> + 'static>(function: F) -> Source<A>
[src]
pub fn empty() -> Source<A>
[src]
pub fn single(a: A) -> Source<A>
[src]
pub fn map<B, F: FnMut(A) -> B + 'static>(self, function: F) -> Source<B>
[src]
pub fn filter<F: FnMut(&A) -> bool + 'static>(self, function: F) -> Source<A>
[src]
pub fn fold<Accumulator, F: FnMut(Accumulator, A) -> Accumulator>(
self,
initial: Accumulator,
function: F
) -> Accumulator
[src]
self,
initial: Accumulator,
function: F
) -> Accumulator
pub fn flat_map<B, Next: FnMut(A) -> Source<B> + 'static>(
self,
next: Next
) -> Source<B>
[src]
self,
next: Next
) -> Source<B>
pub fn concat(self, other: Source<A>) -> Source<A>
[src]
pub fn append(self, last: A) -> Source<A>
[src]
pub fn prepend(self, head: A) -> Source<A>
[src]
pub fn count<F: Fn(A) -> bool>(self, predicate: F) -> i32
[src]
impl<A> Source<Source<A>>
[src]
impl<A: Clone> Source<A>
[src]
impl Source<char>
[src]
impl<Snippet: Into<Box<str>>> Source<Snippet>
[src]
impl<A: Debug> Source<A>
[src]
Trait Implementations
impl<A, I: Iterator<Item = A> + 'static> From<I> for Source<A>
[src]
impl<A> IntoIterator for Source<A>
[src]
type Item = A
The type of the elements being iterated over.
type IntoIter = SourceIterator<A>
Which kind of iterator are we turning this into?
ⓘImportant traits for SourceIterator<A>fn into_iter(self) -> SourceIterator<A>
[src]
ⓘImportant traits for SourceIterator<A>
Auto Trait Implementations
impl<A> !Send for Source<A>
impl<A> !Sync for Source<A>
impl<A> Unpin for Source<A>
impl<A> !UnwindSafe for Source<A>
impl<A> !RefUnwindSafe for Source<A>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,