Enum gfx::pso::ElementError
[−]
[src]
pub enum ElementError<S> { NotFound(S), Offset(S, ElemOffset), Format(S, ConstFormat), }
Error matching an element inside the constant buffer.
Variants
NotFound(S)
Element not found.
Offset(S, ElemOffset)
Element offset mismatch.
Format(S, ConstFormat)
Element format mismatch.
Trait Implementations
impl<S: Clone> Clone for ElementError<S>
[src]
fn clone(&self) -> ElementError<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<S: Debug> Debug for ElementError<S>
[src]
impl<S: PartialEq> PartialEq for ElementError<S>
[src]
fn eq(&self, __arg_0: &ElementError<S>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ElementError<S>) -> bool
This method tests for !=
.
impl<S: Debug + Display> Display for ElementError<S>
[src]
impl<S: Debug + Display> Error for ElementError<S>
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl<'a> From<ElementError<&'a str>> for ElementError<String>
[src]
fn from(other: ElementError<&'a str>) -> ElementError<String>
Performs the conversion.