Trait shades::Swizzlable[][src]

pub trait Swizzlable<S> {
    fn swizzle(&self, sw: S) -> Self;
}

Interface to implement to swizzle an expression.

If you plan to use your implementor with the sw! macro, S must be one of the following types:

Required methods

fn swizzle(&self, sw: S) -> Self[src]

Loading content...

Implementors

impl<T> Swizzlable<SwizzleSelector> for Expr<V2<T>>[src]

impl<T> Swizzlable<SwizzleSelector> for Expr<V3<T>>[src]

impl<T> Swizzlable<SwizzleSelector> for Expr<V4<T>>[src]

impl<T> Swizzlable<[SwizzleSelector; 2]> for Expr<V2<T>>[src]

impl<T> Swizzlable<[SwizzleSelector; 2]> for Expr<V3<T>>[src]

impl<T> Swizzlable<[SwizzleSelector; 2]> for Expr<V4<T>>[src]

impl<T> Swizzlable<[SwizzleSelector; 3]> for Expr<V3<T>>[src]

impl<T> Swizzlable<[SwizzleSelector; 3]> for Expr<V4<T>>[src]

impl<T> Swizzlable<[SwizzleSelector; 4]> for Expr<V4<T>>[src]

Loading content...