Trait TupleSwizzle2

Source
pub trait TupleSwizzle2<A: Copy, B: Copy>: Sized {
Show 13 methods // Required method fn s(self) -> (A, B); // Provided methods fn x(self) -> A { ... } fn y(self) -> B { ... } fn xx(self) -> (A, A) { ... } fn xy(self) -> (A, B) { ... } fn yx(self) -> (B, A) { ... } fn yy(self) -> (B, B) { ... } fn r(self) -> A { ... } fn g(self) -> B { ... } fn rr(self) -> (A, A) { ... } fn rg(self) -> (A, B) { ... } fn gr(self) -> (B, A) { ... } fn gg(self) -> (B, B) { ... }
}

Required Methods§

Source

fn s(self) -> (A, B)

Provided Methods§

Source

fn x(self) -> A

Source

fn y(self) -> B

Source

fn xx(self) -> (A, A)

Source

fn xy(self) -> (A, B)

Source

fn yx(self) -> (B, A)

Source

fn yy(self) -> (B, B)

Source

fn r(self) -> A

Source

fn g(self) -> B

Source

fn rr(self) -> (A, A)

Source

fn rg(self) -> (A, B)

Source

fn gr(self) -> (B, A)

Source

fn gg(self) -> (B, B)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<A: Copy, B: Copy> TupleSwizzle2<A, B> for (A, B)

Source§

fn s(self) -> (A, B)

Source§

impl<T: Copy> TupleSwizzle2<T, T> for [T; 2]

Source§

fn s(self) -> (T, T)

Implementors§