Struct Fx

Source
pub struct Fx<'f, S: Clone, V: Clone>(/* private fields */);

Implementations§

Source§

impl<'a, S: Clone, V: Clone> Fx<'a, S, V>

Source

pub fn and_nil(self) -> Fx<'a, (S, ()), V>

Source§

impl<'a, S: Clone, V: Clone> Fx<'a, (S, S), V>

Source

pub fn and_collapse(self) -> Fx<'a, S, V>

Source§

impl<'a, S: Clone, B: Clone, V: Clone> Fx<'a, ((S, B), S), V>

Source

pub fn and_collapse_left(self) -> Fx<'a, (S, B), V>

Source§

impl<'a, A: Clone, B: Clone, C: Clone, V: Clone> Fx<'a, (A, (B, C)), V>

Source

pub fn and_rotate(self) -> Fx<'a, (C, (A, B)), V>

Source§

impl<'a, A: Clone, B: Clone, V: Clone> Fx<'a, (A, B), V>

Source

pub fn and_swap(self) -> Fx<'a, (B, A), V>

Source

pub fn and_nest(self) -> Fx<'a, A, Fx<'a, B, V>>

Source§

impl<'a, A: Clone, B: Clone, V: Clone> Fx<'a, A, Fx<'a, B, V>>

Source

pub fn and_flat(self) -> Fx<'a, (A, B), V>

Source§

impl<'f, V: Clone> Fx<'f, (), V>

Source

pub fn pure(value: V) -> Self

Source§

impl<'f, S: Clone, V: Clone> Fx<'f, S, V>

Source

pub fn value(value: V) -> Self

Source

pub fn func<F>(f: F) -> Self
where F: FnOnce(S) -> V + Clone + 'f,

Source

pub fn map_m<U, F>(self, f: F) -> Fx<'f, S, U>
where U: Clone, F: FnOnce(V) -> Fx<'f, S, U> + Clone + 'f,

Source

pub fn map<U, F>(self, f: F) -> Fx<'f, S, U>
where U: Clone, F: FnOnce(V) -> U + Clone + 'f,

Source

pub fn flat_map<R, U, F>(self, f: F) -> Fx<'f, (S, R), U>
where U: Clone, V: Clone, R: Clone, F: FnOnce(V) -> Fx<'f, R, U> + Clone + 'f,

Source

pub fn then<U>(self, e: Fx<'f, S, U>) -> Fx<'f, S, U>
where U: Clone,

Source

pub fn and_then<T, U>(self, e: Fx<'f, T, U>) -> Fx<'f, (S, T), U>
where T: Clone, U: Clone,

Source

pub fn contra_map<Outer, Getter, Setter>( self, getter: Getter, setter: Setter, ) -> Fx<'f, Outer, V>
where Outer: Clone, Getter: FnOnce(Outer) -> S + Clone + 'f, Setter: FnOnce(Outer, S) -> Outer + Clone + 'f,

Source§

impl<'f, S: Clone, V: Clone> Fx<'f, S, V>

Source

pub fn via<T, U, H>(self, h: H) -> Fx<'f, T, U>
where T: Clone, U: Clone, H: Into<Handler<'f, S, T, V, U>>,

Source§

impl<'a, S: Clone, V: Clone> Fx<'a, S, V>

Source

pub fn provide<T: Clone>(self, s: S) -> Fx<'a, T, V>

Source

pub fn provide_part<A, B, C, F>(self, a: A, cmap: C, fmap: F) -> Fx<'a, B, V>
where C: FnOnce(A, B) -> S + Clone + 'a, F: FnOnce(B, S) -> B + Clone + 'a, A: Clone + 'a, B: Clone + 'a,

Source§

impl<'a, A: Clone, B: Clone, V: Clone> Fx<'a, (A, B), V>

Source

pub fn provide_left(self, a: A) -> Fx<'a, B, V>

Source§

impl<V: Clone> Fx<'_, (), V>

Source

pub fn eval(self) -> V

Source§

impl<'f, S: Clone, V: Clone> Fx<'f, S, V>

Source

pub fn immediate(s: S, value: V) -> Self

Source

pub fn pending<F>(f: F) -> Self
where F: FnOnce(S) -> Self + Clone + 'f,

Source

pub fn adapt<T, U, C, F>(self, cmap: C, fmap: F) -> Fx<'f, T, U>
where T: Clone, S: Clone, U: Clone, C: FnOnce(T) -> S + Clone + 'f, F: FnOnce(T, S, V) -> Fx<'f, T, U> + Clone + 'f,

Source§

impl<'f, I: Clone, S: Clone> Fx<'f, S, Stream<'f, I, S>>

Source

pub fn concat(self, tail: Self) -> Self

Source

pub fn fold_stream<A, F>(f: F) -> Fx<'f, (Self, (A, S)), A>
where A: Clone + 'f, F: FnOnce(A, I) -> Fx<'f, S, Item<A>> + Clone + 'f,

Source

pub fn fold<A, F>(self, f: F) -> Fx<'f, (A, S), A>
where A: Clone + 'f, F: FnOnce(A, I) -> Fx<'f, S, Item<A>> + Clone + 'f,

Trait Implementations§

Source§

impl<'f, S: Clone + Clone, V: Clone + Clone> Clone for Fx<'f, S, V>

Source§

fn clone(&self) -> Fx<'f, S, V>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<'f, S, V> Freeze for Fx<'f, S, V>
where S: Freeze, V: Freeze,

§

impl<'f, S, V> !RefUnwindSafe for Fx<'f, S, V>

§

impl<'f, S, V> !Send for Fx<'f, S, V>

§

impl<'f, S, V> !Sync for Fx<'f, S, V>

§

impl<'f, S, V> Unpin for Fx<'f, S, V>
where S: Unpin, V: Unpin,

§

impl<'f, S, V> !UnwindSafe for Fx<'f, S, V>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.