Trait valence_math::swizzles::Vec2Swizzles

source ·
pub trait Vec2Swizzles:
    Sized
    + Copy
    + Clone {
    type Vec3;
    type Vec4;

Show 28 methods // Required methods fn xx(self) -> Self; fn yx(self) -> Self; fn yy(self) -> Self; fn xxx(self) -> Self::Vec3; fn xxy(self) -> Self::Vec3; fn xyx(self) -> Self::Vec3; fn xyy(self) -> Self::Vec3; fn yxx(self) -> Self::Vec3; fn yxy(self) -> Self::Vec3; fn yyx(self) -> Self::Vec3; fn yyy(self) -> Self::Vec3; fn xxxx(self) -> Self::Vec4; fn xxxy(self) -> Self::Vec4; fn xxyx(self) -> Self::Vec4; fn xxyy(self) -> Self::Vec4; fn xyxx(self) -> Self::Vec4; fn xyxy(self) -> Self::Vec4; fn xyyx(self) -> Self::Vec4; fn xyyy(self) -> Self::Vec4; fn yxxx(self) -> Self::Vec4; fn yxxy(self) -> Self::Vec4; fn yxyx(self) -> Self::Vec4; fn yxyy(self) -> Self::Vec4; fn yyxx(self) -> Self::Vec4; fn yyxy(self) -> Self::Vec4; fn yyyx(self) -> Self::Vec4; fn yyyy(self) -> Self::Vec4; // Provided method fn xy(self) -> Self { ... }
}

Required Associated Types§

Required Methods§

source

fn xx(self) -> Self

source

fn yx(self) -> Self

source

fn yy(self) -> Self

source

fn xxx(self) -> Self::Vec3

source

fn xxy(self) -> Self::Vec3

source

fn xyx(self) -> Self::Vec3

source

fn xyy(self) -> Self::Vec3

source

fn yxx(self) -> Self::Vec3

source

fn yxy(self) -> Self::Vec3

source

fn yyx(self) -> Self::Vec3

source

fn yyy(self) -> Self::Vec3

source

fn xxxx(self) -> Self::Vec4

source

fn xxxy(self) -> Self::Vec4

source

fn xxyx(self) -> Self::Vec4

source

fn xxyy(self) -> Self::Vec4

source

fn xyxx(self) -> Self::Vec4

source

fn xyxy(self) -> Self::Vec4

source

fn xyyx(self) -> Self::Vec4

source

fn xyyy(self) -> Self::Vec4

source

fn yxxx(self) -> Self::Vec4

source

fn yxxy(self) -> Self::Vec4

source

fn yxyx(self) -> Self::Vec4

source

fn yxyy(self) -> Self::Vec4

source

fn yyxx(self) -> Self::Vec4

source

fn yyxy(self) -> Self::Vec4

source

fn yyyx(self) -> Self::Vec4

source

fn yyyy(self) -> Self::Vec4

Provided Methods§

source

fn xy(self) -> Self

Object Safety§

This trait is not object safe.

Implementors§