Skip to main content

Swap2

Trait Swap2 

Source
pub trait Swap2 {
    type Output;

    // Required method
    fn swap2(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn swap2(self) -> Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§