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>ⓘ
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
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]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
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, [src]
self,
until: S
) -> Stream<'c, bool> where
Self: Sized,
T: 'a,
'a: 'c,
'b: 'c,
fn try_iter<'b>(self) -> TryIter<'b, T>ⓘ where
Self: Sized + 'a,
T: 'a,
'a: 'b, [src]
Self: Sized + 'a,
T: 'a,
'a: 'b,
fn to_parameter(self, initial: T) -> Parameter<'a, T> where
Self: Sized + 'a,
T: 'a, [src]
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, [src]
Notable traits for TryIterLastFrame<'a, T>
impl<'a, T> Iterator for TryIterLastFrame<'a, T> type Item = T;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, [src]
Self: Sized + 'a,
fn to_property<'b>(self, initial: T) -> Property<'a, T> where
T: Clone + 'a,
Self: Sized + Into<StreamRc<'a, T>>, [src]
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>>, [src]
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, [src]
T: Clone + 'a,
'a: 'b,
Self: Sized,
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]
impl<'a, 'b, T: Clone + 'b, S: WithInner<'a, T> + StreamInner<'a, T>> StreamExt<'b, T> for &'b S where
'a: 'b, [src]