Enum ggez::event::ErrorOrigin
source · [−]pub enum ErrorOrigin {
Update,
Draw,
}
Expand description
Used in EventHandler::on_error()
to specify where an error originated
Variants
Update
error originated in update()
Draw
error originated in draw()
Trait Implementations
sourceimpl Clone for ErrorOrigin
impl Clone for ErrorOrigin
sourcefn clone(&self) -> ErrorOrigin
fn clone(&self) -> ErrorOrigin
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ErrorOrigin
impl Debug for ErrorOrigin
sourceimpl PartialEq<ErrorOrigin> for ErrorOrigin
impl PartialEq<ErrorOrigin> for ErrorOrigin
sourcefn eq(&self, other: &ErrorOrigin) -> bool
fn eq(&self, other: &ErrorOrigin) -> bool
impl Copy for ErrorOrigin
impl Eq for ErrorOrigin
impl StructuralEq for ErrorOrigin
impl StructuralPartialEq for ErrorOrigin
Auto Trait Implementations
impl RefUnwindSafe for ErrorOrigin
impl Send for ErrorOrigin
impl Sync for ErrorOrigin
impl Unpin for ErrorOrigin
impl UnwindSafe for ErrorOrigin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more