[][src]Struct luminance::shader::AdaptationFailure

pub struct AdaptationFailure<B: ?Sized, Sem, Out, Uni> where
    B: Shader
{ pub program: Program<B, Sem, Out, Uni>, pub error: ProgramError, }

A Program uniform adaptation that has failed.

Parametricity

Fields

program: Program<B, Sem, Out, Uni>

Program used before trying to adapt.

error: ProgramError

Program error that prevented to adapt.

Implementations

impl<B: ?Sized, Sem, Out, Uni> AdaptationFailure<B, Sem, Out, Uni> where
    B: Shader
[src]

pub fn ignore_error(self) -> Program<B, Sem, Out, Uni>[src]

Get the program and ignore the error.

Auto Trait Implementations

impl<B: ?Sized, Sem, Out, Uni> RefUnwindSafe for AdaptationFailure<B, Sem, Out, Uni> where
    Out: RefUnwindSafe,
    Sem: RefUnwindSafe,
    Uni: RefUnwindSafe,
    <B as Shader>::ProgramRepr: RefUnwindSafe

impl<B, Sem, Out, Uni> !Send for AdaptationFailure<B, Sem, Out, Uni>

impl<B, Sem, Out, Uni> !Sync for AdaptationFailure<B, Sem, Out, Uni>

impl<B: ?Sized, Sem, Out, Uni> Unpin for AdaptationFailure<B, Sem, Out, Uni> where
    Uni: Unpin,
    <B as Shader>::ProgramRepr: Unpin

impl<B: ?Sized, Sem, Out, Uni> UnwindSafe for AdaptationFailure<B, Sem, Out, Uni> where
    Out: RefUnwindSafe,
    Sem: RefUnwindSafe,
    Uni: UnwindSafe,
    <B as Shader>::ProgramRepr: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.