Enum nannou::ui::backend::glium::glium::uniforms::LayoutMismatchError [−][src]
pub enum LayoutMismatchError { TypeMismatch { expected: UniformType, obtained: UniformType, }, LayoutMismatch { expected: BlockLayout, obtained: BlockLayout, }, OffsetMismatch { expected: usize, obtained: usize, }, MemberMismatch { member: String, err: Box<LayoutMismatchError>, }, MissingField { name: String, }, }
Error about a block layout mismatch.
Variants
TypeMismatch
There is a mismatch in the type of one element.
Fields of TypeMismatch
expected: UniformType | Type expected by the shader. |
obtained: UniformType | Type that you gave. |
LayoutMismatch
The expected layout is totally different from what we have.
Fields of LayoutMismatch
expected: BlockLayout | Layout expected by the shader. |
obtained: BlockLayout | Layout of the input. |
OffsetMismatch
The type of data is good, but there is a misalignment.
Fields of OffsetMismatch
expected: usize | Expected offset of a member. |
obtained: usize | Offset of the same member in the input. |
MemberMismatch
There is a mismatch in a submember of this layout.
This is kind of a hierarchy inside the LayoutMismatchError
s.
Fields of MemberMismatch
member: String | Name of the field. |
err: Box<LayoutMismatchError> | The sub-error. |
MissingField
A field is missing in either the expected of the input data layout.
Fields of MissingField
name: String | Name of the field. |
Trait Implementations
impl Clone for LayoutMismatchError
[src]
impl Clone for LayoutMismatchError
fn clone(&self) -> LayoutMismatchError
[src]
fn clone(&self) -> LayoutMismatchError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for LayoutMismatchError
[src]
impl Debug for LayoutMismatchError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for LayoutMismatchError
[src]
impl Error for LayoutMismatchError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for LayoutMismatchError
[src]
impl Display for LayoutMismatchError
Auto Trait Implementations
impl Send for LayoutMismatchError
impl Send for LayoutMismatchError
impl Sync for LayoutMismatchError
impl Sync for LayoutMismatchError