Skip to main content

ReShape

Trait ReShape 

Source
pub trait ReShape<O, C> {
    // Required method
    fn reshape(self, ctx: C) -> O;
}

Required Methods§

Source

fn reshape(self, ctx: C) -> O

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, C> ReShape<B<T, C>, C> for Option<T>

Source§

fn reshape(self, ctx: C) -> B<T, C>

Source§

impl<T, E> ReShape<B<T, E>, ()> for Result<T, E>

Source§

fn reshape(self, _ctx: ()) -> B<T, E>

Implementors§

Source§

impl<T, E> ReShape<Option<T>, ()> for B<T, E>

Source§

impl<T, E> ReShape<Result<T, E>, ()> for B<T, E>