Struct takeable_option::Takeable [−][src]
pub struct Takeable<T> { /* fields omitted */ }Methods
impl<T> Takeable<T>[src]
impl<T> Takeable<T>pub fn new(value: T) -> Takeable<T>[src]
pub fn new(value: T) -> Takeable<T>pub fn new_empty() -> Takeable<T>[src]
pub fn new_empty() -> Takeable<T>pub fn take(slot: &mut Takeable<T>) -> T[src]
pub fn take(slot: &mut Takeable<T>) -> TTrait Implementations
impl<T> Deref for Takeable<T>[src]
impl<T> Deref for Takeable<T>type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
fn deref(&self) -> &Self::TargetDereferences the value.
impl<T> DerefMut for Takeable<T>[src]
impl<T> DerefMut for Takeable<T>impl<T: Debug> Debug for Takeable<T>[src]
impl<T: Debug> Debug for Takeable<T>fn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Clone> Clone for Takeable<T>[src]
impl<T: Clone> Clone for Takeable<T>fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<T: Default> Default for Takeable<T>[src]
impl<T: Default> Default for Takeable<T>impl<T: PartialEq> PartialEq for Takeable<T>[src]
impl<T: PartialEq> PartialEq for Takeable<T>fn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Self) -> bool[src]
fn ne(&self, other: &Self) -> boolThis method tests for !=.
impl<T: Eq> Eq for Takeable<T>[src]
impl<T: Eq> Eq for Takeable<T>impl<T: PartialOrd> PartialOrd for Takeable<T>[src]
impl<T: PartialOrd> PartialOrd for Takeable<T>fn partial_cmp(&self, other: &Self) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Self) -> bool[src]
fn lt(&self, other: &Self) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Self) -> bool[src]
fn le(&self, other: &Self) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Self) -> bool[src]
fn gt(&self, other: &Self) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Self) -> bool[src]
fn ge(&self, other: &Self) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<T: Ord> Ord for Takeable<T>[src]
impl<T: Ord> Ord for Takeable<T>fn cmp(&self, other: &Self) -> Ordering[src]
fn cmp(&self, other: &Self) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl<T: Hash> Hash for Takeable<T>[src]
impl<T: Hash> Hash for Takeable<T>