pub enum TwoWays<ONE, TWO> {
One(ONE),
Two(TWO),
}Expand description
TwoWays is used to implement traits that based on two ways.
Users can wrap two different trait types together.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<ONE, TWO> Freeze for TwoWays<ONE, TWO>
impl<ONE, TWO> RefUnwindSafe for TwoWays<ONE, TWO>where
ONE: RefUnwindSafe,
TWO: RefUnwindSafe,
impl<ONE, TWO> Send for TwoWays<ONE, TWO>
impl<ONE, TWO> Sync for TwoWays<ONE, TWO>
impl<ONE, TWO> Unpin for TwoWays<ONE, TWO>
impl<ONE, TWO> UnwindSafe for TwoWays<ONE, TWO>where
ONE: UnwindSafe,
TWO: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more