[−][src]Enum swim_codec::step::Step
Variants
In(T)
Out
Over
Methods
impl<T> Step<T>
[src]
pub fn is_in(&self) -> bool
[src]
pub fn is_out(&self) -> bool
[src]
pub fn is_over(&self) -> bool
[src]
pub fn unwrap(self) -> T
[src]
pub fn map<U, F: FnOnce(T) -> U>(self, f: F) -> Step<U>
[src]
pub fn map_or<U, F: FnOnce(T) -> U>(self, default: U, f: F) -> U
[src]
pub fn map_or_else<U, D: FnOnce() -> U, F: FnOnce(T) -> U>(
self,
default: D,
f: F
) -> U
[src]
self,
default: D,
f: F
) -> U
pub fn and<U>(self, alt: Step<U>) -> Step<U>
[src]
pub fn and_then<U, F: FnOnce(T) -> Step<U>>(self, f: F) -> Step<U>
[src]
pub fn or(self, alt: Step<T>) -> Step<T>
[src]
pub fn or_else<F: FnOnce() -> Step<T>>(self, f: F) -> Step<T>
[src]
pub fn ok_or<E>(self, err: E) -> Result<T, E>
[src]
pub fn ok_or_else<E, F: FnOnce() -> E>(self, err: F) -> Result<T, E>
[src]
pub fn into_option(self) -> Option<T>
[src]
Trait Implementations
impl<T: PartialEq> PartialEq<Step<T>> for Step<T>
[src]
impl<T: Eq> Eq for Step<T>
[src]
impl<T: Debug> Debug for Step<T>
[src]
impl<T: Copy> Copy for Step<T>
[src]
impl<T: Clone> Clone for Step<T>
[src]
fn clone(&self) -> Step<T>
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> Into<Option<T>> for Step<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom 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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,