Trait seitan::StreamExt[][src]

pub trait StreamExt<'a, T>: WithInner<'a, T> {
Show methods fn unique(self) -> Stream<'a, T>;
fn rc(self) -> StreamRc<'a, T>
    where
        T: Clone
; fn on_value<'b, F: FnMut(T) + 'b>(self, f: F) -> Stream<'b, T>
    where
        T: Clone + 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn map<'b, T3, F>(self, f: F) -> Stream<'b, T3>
    where
        T: 'a,
        T3: 'b,
        F: FnMut(T) -> T3 + 'b,
        'a: 'b,
        Self: Sized
, { ... }
fn filter<'b, F: FnMut(&T) -> bool + 'b>(self, f: F) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn filter_by<'b, 'c>(self, p: Property<'b, bool>) -> Stream<'c, T>
    where
        T: 'a,
        'a: 'b,
        'b: 'c,
        Self: Sized
, { ... }
fn partition<'b, F>(self, f: F) -> (Stream<'b, T>, Stream<'b, T>)
    where
        F: FnMut(&T) -> bool + 'b,
        'a: 'b,
        Self: Sized,
        T: 'a
, { ... }
fn filter_map<'b, T3: 'b, F: FnMut(T) -> Option<T3> + 'b>(
        self,
        f: F
    ) -> Stream<'b, T3>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn partition_map<'b, F, L: 'b, R: 'b>(
        self,
        f: F
    ) -> (Stream<'b, L>, Stream<'b, R>)
    where
        F: FnMut(T) -> Either<L, R> + 'b,
        'a: 'b,
        Self: Sized,
        T: 'a
, { ... }
fn flat_map<'b, T3: 'b, F: FnMut(T) -> Stream<'b, T3> + 'b>(
        self,
        f: F
    ) -> Stream<'b, T3>
    where
        T: 'a,
        T3: Clone,
        'a: 'b,
        Self: Sized
, { ... }
fn take<'b>(self, take: usize) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn take_then<'b>(self, take: usize, then: T) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn take_while<'b, F: FnMut(&T) -> bool + 'b>(self, f: F) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn take_while_then<'b, F: FnMut(&T) -> bool + 'b>(
        self,
        f: F,
        then: T
    ) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn skip<'b>(self, skip: usize) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn skip_while<'b, F: FnMut(&T) -> bool + 'b>(self, f: F) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn fold<'b, T3: 'b, F: FnMut(T3, T) -> T3 + 'b>(
        self,
        initial: T3,
        f: F
    ) -> Stream<'b, T3>
    where
        T: 'a,
        'a: 'b,
        T3: Clone,
        Self: Sized
, { ... }
fn scan<'b, T2: 'b, T3: 'b, F: FnMut(&mut T2, T) -> Option<T3> + 'b>(
        self,
        initial: T2,
        f: F
    ) -> Stream<'b, T3>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn dedup<'b>(self) -> Stream<'b, T>
    where
        T: Clone + 'a + PartialEq,
        'a: 'b,
        Self: Sized
, { ... }
fn dedup_by<'b, F, T2>(self, f: F) -> Stream<'b, T>
    where
        T: 'a,
        'a: 'b,
        Self: Sized,
        T2: PartialEq + 'b,
        F: Fn(&T) -> T2 + 'b
, { ... }
fn dedup_or<'b>(self, or: Property<'b, bool>) -> Stream<'b, T>
    where
        T: 'a + PartialEq + Clone,
        'a: 'b,
        Self: Sized
, { ... }
fn delay<'b>(self, delay: usize) -> Stream<'b, T>
    where
        T: 'a + PartialEq,
        'a: 'b,
        Self: Sized
, { ... }
fn inspect<'b, F>(self, inspect: F) -> Stream<'b, T>
    where
        T: 'b,
        'a: 'b,
        F: Fn(&T) + 'b,
        Self: Sized
, { ... }
fn once<'b, T2>(self, once: T2) -> Stream<'b, T2>
    where
        T: 'a,
        T2: 'b,
        'a: 'b,
        Self: Sized
, { ... }
fn merge<'b, 'c, S: StreamExt<'b, T>>(self, other: S) -> Stream<'c, T>
    where
        T: Clone + 'c,
        'a: 'c,
        'b: 'c,
        Self: Sized
, { ... }
fn throttle<'c>(self, fps: f32) -> Stream<'c, T>
    where
        T: 'a,
        'a: 'c,
        Self: Sized
, { ... }
fn benchmark<'b, 'c, F: 'b, S: StreamExt<'b, F>>(
        self,
        frame_stream: S
    ) -> (Stream<'c, T>, Stream<'c, Duration>)
    where
        T: Clone + 'a,
        'a: 'c,
        'b: 'c,
        Self: Sized
, { ... }
fn bandpass<'b>(self, alpha: T) -> Stream<'b, T>
    where
        T: 'a + Zero + One + Sub<Output = T> + Add<Output = T> + Mul<Output = T> + Clone,
        'a: 'b,
        Self: Sized
, { ... }
fn resolution<'b>(self, resolution: u8) -> Stream<'b, T>
    where
        T: 'a + Div<Output = T> + Mul<Output = T> + Float,
        'a: 'b,
        Self: Sized
, { ... }
fn to_bool<'b>(self) -> Stream<'b, bool>
    where
        T: 'a,
        'a: 'b,
        Self: Sized
, { ... }
fn until<'b, 'c, T2: 'b, S: StreamExt<'b, T2>>(
        self,
        until: S
    ) -> Stream<'c, bool>
    where
        Self: Sized,
        T: 'a,
        'a: 'c,
        'b: 'c
, { ... }
fn try_iter<'b>(self) -> TryIter<'b, T>

Notable traits for TryIter<'a, T>

impl<'a, T> Iterator for TryIter<'a, T> type Item = T;

    where
        Self: Sized + 'a,
        T: 'a,
        'a: 'b
, { ... }
fn to_parameter(self, initial: T) -> Parameter<'a, T>
    where
        Self: Sized + 'a,
        T: 'a
, { ... }
fn try_iter_last_frame<'b, S>(
        self,
        last_frame: S
    ) -> TryIterLastFrame<'b, T>

Notable traits for TryIterLastFrame<'a, T>

impl<'a, T> Iterator for TryIterLastFrame<'a, T> type Item = T;

    where
        Self: Sized + 'a,
        T: 'a,
        'a: 'b,
        S: StreamExt<'a, ()> + 'a
, { ... }
fn to_box(self) -> Box<dyn StreamExt<'a, T> + 'a>
    where
        Self: Sized + 'a
, { ... }
fn to_property<'b>(self, initial: T) -> Property<'a, T>
    where
        T: Clone + 'a,
        Self: Sized + Into<StreamRc<'a, T>>
, { ... }
fn to_property_last_value<'b>(self, initial: T) -> PropertyLastValue<'a, T>
    where
        T: Clone + 'a,
        Self: Sized + Into<StreamRc<'a, T>>
, { ... }
fn collect<'b>(self, samples: usize) -> Property<'b, Vec<T>>
    where
        T: Clone + 'a,
        'a: 'b,
        Self: Sized
, { ... }
}

Required methods

fn unique(self) -> Stream<'a, T>[src]

fn rc(self) -> StreamRc<'a, T> where
    T: Clone
[src]

Loading content...

Provided methods

fn on_value<'b, F: FnMut(T) + 'b>(self, f: F) -> Stream<'b, T> where
    T: Clone + 'a,
    'a: 'b,
    Self: Sized
[src]

fn map<'b, T3, F>(self, f: F) -> Stream<'b, T3> where
    T: 'a,
    T3: 'b,
    F: FnMut(T) -> T3 + 'b,
    'a: 'b,
    Self: Sized
[src]

fn filter<'b, F: FnMut(&T) -> bool + 'b>(self, f: F) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn filter_by<'b, 'c>(self, p: Property<'b, bool>) -> Stream<'c, T> where
    T: 'a,
    'a: 'b,
    'b: 'c,
    Self: Sized
[src]

fn partition<'b, F>(self, f: F) -> (Stream<'b, T>, Stream<'b, T>) where
    F: FnMut(&T) -> bool + 'b,
    'a: 'b,
    Self: Sized,
    T: 'a, 
[src]

fn filter_map<'b, T3: 'b, F: FnMut(T) -> Option<T3> + 'b>(
    self,
    f: F
) -> Stream<'b, T3> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn partition_map<'b, F, L: 'b, R: 'b>(
    self,
    f: F
) -> (Stream<'b, L>, Stream<'b, R>) where
    F: FnMut(T) -> Either<L, R> + 'b,
    'a: 'b,
    Self: Sized,
    T: 'a, 
[src]

fn flat_map<'b, T3: 'b, F: FnMut(T) -> Stream<'b, T3> + 'b>(
    self,
    f: F
) -> Stream<'b, T3> where
    T: 'a,
    T3: Clone,
    'a: 'b,
    Self: Sized
[src]

fn take<'b>(self, take: usize) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn take_then<'b>(self, take: usize, then: T) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn take_while<'b, F: FnMut(&T) -> bool + 'b>(self, f: F) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn take_while_then<'b, F: FnMut(&T) -> bool + 'b>(
    self,
    f: F,
    then: T
) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn skip<'b>(self, skip: usize) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn skip_while<'b, F: FnMut(&T) -> bool + 'b>(self, f: F) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn fold<'b, T3: 'b, F: FnMut(T3, T) -> T3 + 'b>(
    self,
    initial: T3,
    f: F
) -> Stream<'b, T3> where
    T: 'a,
    'a: 'b,
    T3: Clone,
    Self: Sized
[src]

fn scan<'b, T2: 'b, T3: 'b, F: FnMut(&mut T2, T) -> Option<T3> + 'b>(
    self,
    initial: T2,
    f: F
) -> Stream<'b, T3> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn dedup<'b>(self) -> Stream<'b, T> where
    T: Clone + 'a + PartialEq,
    'a: 'b,
    Self: Sized
[src]

fn dedup_by<'b, F, T2>(self, f: F) -> Stream<'b, T> where
    T: 'a,
    'a: 'b,
    Self: Sized,
    T2: PartialEq + 'b,
    F: Fn(&T) -> T2 + 'b, 
[src]

fn dedup_or<'b>(self, or: Property<'b, bool>) -> Stream<'b, T> where
    T: 'a + PartialEq + Clone,
    'a: 'b,
    Self: Sized
[src]

fn delay<'b>(self, delay: usize) -> Stream<'b, T> where
    T: 'a + PartialEq,
    'a: 'b,
    Self: Sized
[src]

fn inspect<'b, F>(self, inspect: F) -> Stream<'b, T> where
    T: 'b,
    'a: 'b,
    F: Fn(&T) + 'b,
    Self: Sized
[src]

fn once<'b, T2>(self, once: T2) -> Stream<'b, T2> where
    T: 'a,
    T2: 'b,
    'a: 'b,
    Self: Sized
[src]

fn merge<'b, 'c, S: StreamExt<'b, T>>(self, other: S) -> Stream<'c, T> where
    T: Clone + 'c,
    'a: 'c,
    'b: 'c,
    Self: Sized
[src]

fn throttle<'c>(self, fps: f32) -> Stream<'c, T> where
    T: 'a,
    'a: 'c,
    Self: Sized
[src]

fn benchmark<'b, 'c, F: 'b, S: StreamExt<'b, F>>(
    self,
    frame_stream: S
) -> (Stream<'c, T>, Stream<'c, Duration>) where
    T: Clone + 'a,
    'a: 'c,
    'b: 'c,
    Self: Sized
[src]

fn bandpass<'b>(self, alpha: T) -> Stream<'b, T> where
    T: 'a + Zero + One + Sub<Output = T> + Add<Output = T> + Mul<Output = T> + Clone,
    'a: 'b,
    Self: Sized
[src]

fn resolution<'b>(self, resolution: u8) -> Stream<'b, T> where
    T: 'a + Div<Output = T> + Mul<Output = T> + Float,
    'a: 'b,
    Self: Sized
[src]

fn to_bool<'b>(self) -> Stream<'b, bool> where
    T: 'a,
    'a: 'b,
    Self: Sized
[src]

fn until<'b, 'c, T2: 'b, S: StreamExt<'b, T2>>(
    self,
    until: S
) -> Stream<'c, bool> where
    Self: Sized,
    T: 'a,
    'a: 'c,
    'b: 'c, 
[src]

fn try_iter<'b>(self) -> TryIter<'b, T>

Notable traits for TryIter<'a, T>

impl<'a, T> Iterator for TryIter<'a, T> type Item = T;
where
    Self: Sized + 'a,
    T: 'a,
    'a: 'b, 
[src]

fn to_parameter(self, initial: T) -> Parameter<'a, T> where
    Self: Sized + 'a,
    T: 'a, 
[src]

fn try_iter_last_frame<'b, S>(self, last_frame: S) -> TryIterLastFrame<'b, T>

Notable traits for TryIterLastFrame<'a, T>

impl<'a, T> Iterator for TryIterLastFrame<'a, T> type Item = T;
where
    Self: Sized + 'a,
    T: 'a,
    'a: 'b,
    S: StreamExt<'a, ()> + 'a, 
[src]

fn to_box(self) -> Box<dyn StreamExt<'a, T> + 'a> where
    Self: Sized + 'a, 
[src]

fn to_property<'b>(self, initial: T) -> Property<'a, T> where
    T: Clone + 'a,
    Self: Sized + Into<StreamRc<'a, T>>, 
[src]

fn to_property_last_value<'b>(self, initial: T) -> PropertyLastValue<'a, T> where
    T: Clone + 'a,
    Self: Sized + Into<StreamRc<'a, T>>, 
[src]

fn collect<'b>(self, samples: usize) -> Property<'b, Vec<T>> where
    T: Clone + 'a,
    'a: 'b,
    Self: Sized
[src]

Loading content...

Implementations on Foreign Types

impl<'a, 'b, T: Clone + 'b, S: WithInner<'a, T> + StreamInner<'a, T>> StreamExt<'b, T> for &'b S where
    'a: 'b, 
[src]

Loading content...

Implementors

impl<'a, T2: 'a> StreamExt<'a, T2> for Stream<'a, T2>[src]

impl<'a, T: 'a> StreamExt<'a, T> for StreamRc<'a, T>[src]

Loading content...