[][src]Trait prisma::channel::cast::ChannelFormatCast

pub trait ChannelFormatCast<Out>: Sized {
    fn cast(self) -> Out;

    fn cast_with_rescale(self, _: f64, _: f64) -> Out { ... }
}

Convert between channel formats

Required methods

fn cast(self) -> Out

Cast the channel scalar type

Loading content...

Provided methods

fn cast_with_rescale(self, _: f64, _: f64) -> Out

Cast the channel scalar type, optionally rescaling the range

Loading content...

Implementations on Foreign Types

impl ChannelFormatCast<u8> for u8[src]

impl ChannelFormatCast<u16> for u8[src]

impl ChannelFormatCast<u32> for u8[src]

impl ChannelFormatCast<u64> for u8[src]

impl ChannelFormatCast<f32> for u8[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f32[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<f64> for u8[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f64[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u8> for u16[src]

impl ChannelFormatCast<u16> for u16[src]

impl ChannelFormatCast<u32> for u16[src]

impl ChannelFormatCast<u64> for u16[src]

impl ChannelFormatCast<f32> for u16[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f32[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<f64> for u16[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f64[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u8> for u32[src]

impl ChannelFormatCast<u16> for u32[src]

impl ChannelFormatCast<u32> for u32[src]

impl ChannelFormatCast<u64> for u32[src]

impl ChannelFormatCast<f32> for u32[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f32[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<f64> for u32[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f64[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u8> for u64[src]

impl ChannelFormatCast<u16> for u64[src]

impl ChannelFormatCast<u32> for u64[src]

impl ChannelFormatCast<u64> for u64[src]

impl ChannelFormatCast<f32> for u64[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f32[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<f64> for u64[src]

fn cast_with_rescale(self, min: f64, max: f64) -> f64[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u8> for f32[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u8[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u16> for f32[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u16[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u32> for f32[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u32[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u64> for f32[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u64[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<f32> for f32[src]

impl ChannelFormatCast<f64> for f32[src]

impl ChannelFormatCast<u8> for f64[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u8[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u16> for f64[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u16[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u32> for f64[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u32[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<u64> for f64[src]

fn cast_with_rescale(self, min: f64, max: f64) -> u64[src]

Cast the channel scalar, optionally rescaling the range

impl ChannelFormatCast<f32> for f64[src]

impl ChannelFormatCast<f64> for f64[src]

impl<T, A, U> ChannelFormatCast<A> for Deg<T> where
    A: Angle<Scalar = U>,
    T: Float + ChannelFormatCast<U>,
    U: Float
[src]

impl<T, A, U> ChannelFormatCast<A> for Rad<T> where
    A: Angle<Scalar = U>,
    T: Float + ChannelFormatCast<U>,
    U: Float
[src]

impl<T, A, U> ChannelFormatCast<A> for Turns<T> where
    A: Angle<Scalar = U>,
    T: Float + ChannelFormatCast<U>,
    U: Float
[src]

impl<T, A, U> ChannelFormatCast<A> for ArcMinutes<T> where
    A: Angle<Scalar = U>,
    T: Float + ChannelFormatCast<U>,
    U: Float
[src]

impl<T, A, U> ChannelFormatCast<A> for ArcSeconds<T> where
    A: Angle<Scalar = U>,
    T: Float + ChannelFormatCast<U>,
    U: Float
[src]

Loading content...

Implementors

Loading content...