[][src]Struct stream_map_any::StreamMapAnyVariant

pub struct StreamMapAnyVariant(_);

Newtype around a Boxed Any.

Methods

impl StreamMapAnyVariant[src]

pub fn value<T>(self) -> Result<T, Self> where
    T: Any
[src]

Retrieve the value if the type matches T.

If it doesn't match, the variant will be returned as Err.

pub fn boxed_value<T>(self) -> Result<Box<T>, Self> where
    T: Any
[src]

Retrieve a boxed value if the type matches T.

If it doesn't match, the variant will be returned as Err.

pub fn as_boxed_any(self) -> Box<dyn Any>[src]

Retrieve the containing boxed Any.

Trait Implementations

impl Debug for StreamMapAnyVariant[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.