Struct partial::environment::Environment
[−]
[src]
pub struct Environment<T, U> { /* fields omitted */ }
Methods
impl<T, U> Environment<T, U>
[src]
fn new(env: T, data: Partial<U>) -> Self
fn value(env: T, data: U) -> Self
fn fake(env: T, data: U) -> Self
fn nothing(env: T) -> Self
fn unwrap(self) -> U
fn decompose(self) -> (T, Partial<U>)
fn expect(self, msg: &str) -> U
fn ensure(self, msg: &str) -> Self
fn unwrap_or_else<F>(self, f: F) -> U where
F: FnOnce() -> U,
F: FnOnce() -> U,
fn map<R, F: FnOnce(U) -> R>(self, f: F) -> Environment<T, R>
fn and_then<R, F: FnOnce(T, U) -> Environment<T, R>>(
self,
f: F
) -> Environment<T, R>
self,
f: F
) -> Environment<T, R>
fn and_next<R, F: FnOnce(T, U) -> Environment<T, R>>(
self,
f: F
) -> Environment<T, R>
self,
f: F
) -> Environment<T, R>
Trait Implementations
impl<T: Clone, U: Clone> Clone for Environment<T, U>
[src]
fn clone(&self) -> Environment<T, U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: PartialEq, U: PartialEq> PartialEq for Environment<T, U>
[src]
fn eq(&self, __arg_0: &Environment<T, U>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Environment<T, U>) -> bool
This method tests for !=
.
impl<T: PartialOrd, U: PartialOrd> PartialOrd for Environment<T, U>
[src]
fn partial_cmp(&self, __arg_0: &Environment<T, U>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Environment<T, U>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Environment<T, U>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Environment<T, U>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Environment<T, U>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Eq, U: Eq> Eq for Environment<T, U>
[src]
impl<T: Ord, U: Ord> Ord for Environment<T, U>
[src]
fn cmp(&self, __arg_0: &Environment<T, U>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
ord_max_min
)Compares and returns the minimum of two values. Read more
impl<T: Debug, U: Debug> Debug for Environment<T, U>
[src]
impl<T, U> Deref for Environment<T, U>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T, U> DerefMut for Environment<T, U>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value