[−][src]Struct stream_map_any::StreamMapAnyVariant
Newtype around a Boxed Any.
Methods
impl StreamMapAnyVariant
[src]
pub fn value<T>(self) -> Result<T, Self> where
T: Any,
[src]
T: Any,
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]
T: Any,
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
Auto Trait Implementations
impl !RefUnwindSafe for StreamMapAnyVariant
impl !Send for StreamMapAnyVariant
impl !Sync for StreamMapAnyVariant
impl Unpin for StreamMapAnyVariant
impl !UnwindSafe for StreamMapAnyVariant
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>,