pub enum Wrapping {
Wrap,
Ignore,
Panic,
}Expand description
Wrapping is used to determine how you want to handle out-of-bounds pixels during plotting pixels to the screen. Here’s how each possible value functions:
Wrapping::Wrap wraps any out of bounds pixels around to the other side. This is useful if you have an object that travels the entirety of the screen and appears on the other side when it reaches the end.
Wrapping::Ignore simply skips all out-of-bounds pixels. This is useful if you might have an object clipping through the edge of the screen.
Wrapping::Panic will panic! if any pixels are out of bounds. You should use this if you have your own wrapping system implemented
Variants§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Wrapping
impl Send for Wrapping
impl Sync for Wrapping
impl Unpin for Wrapping
impl UnwindSafe for Wrapping
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more