[−][src]Struct luminance::shader::AdaptationFailure
A Program
uniform adaptation that has failed.
Parametricity
B
is the backend type.Sem
is theSemantics
type.Out
is the render target type.Uni
is theUniformInterface
type.
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]
B: Shader,
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,
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,
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,
Out: RefUnwindSafe,
Sem: RefUnwindSafe,
Uni: UnwindSafe,
<B as Shader>::ProgramRepr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,