[−][src]Struct monadic::reader::Reader
Fields
run_reader: Box<dyn Fn(E) -> A + 'a>
Methods
impl<'a, E: 'a + Clone, A: 'a + Clone> Reader<'a, E, A>
[src]
pub fn pure(x: A) -> Self
[src]
pub fn initial_env(self, e: E) -> A
[src]
pub fn bind<B, F>(self, f: F) -> Reader<'a, E, B> where
F: 'a + Fn(A) -> Reader<'a, E, B>,
B: 'a,
[src]
F: 'a + Fn(A) -> Reader<'a, E, B>,
B: 'a,
pub fn local<F: 'a>(self, f: F) -> Reader<'a, E, A> where
F: Fn(E) -> E,
[src]
F: Fn(E) -> E,
Auto Trait Implementations
impl<'a, E, A> !RefUnwindSafe for Reader<'a, E, A>
impl<'a, E, A> !Send for Reader<'a, E, A>
impl<'a, E, A> !Sync for Reader<'a, E, A>
impl<'a, E, A> Unpin for Reader<'a, E, A>
impl<'a, E, A> !UnwindSafe for Reader<'a, E, A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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>,