Enum gfx::UpdateError [] [src]

pub enum UpdateError<T> {
    OutOfBounds {
        target: T,
        source: T,
    },
    UnitCountMismatch {
        target: usize,
        slice: usize,
    },
}

An error occuring in buffer/texture updates.

Variants

OutOfBounds

Fields

target: T
source: T
UnitCountMismatch

Fields

target: usize
slice: usize

Trait Implementations

impl<T: PartialEq> PartialEq for UpdateError<T>
[src]

fn eq(&self, __arg_0: &UpdateError<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &UpdateError<T>) -> bool

This method tests for !=.

impl<T: Debug> Debug for UpdateError<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: Clone> Clone for UpdateError<T>
[src]

fn clone(&self) -> UpdateError<T>

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<T: Any + Debug + Display> Display for UpdateError<T>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: Any + Debug + Display> Error for UpdateError<T>
[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