Enum gemini_engine::elements::view::Wrapping
source · 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:
Variants§
Wrap
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.
Ignore
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 but don’t want it to wrap to the other side like Wrapping::Wrap or panic and end the process like Wrapping::Panic
Panic
Wrapping::Panic will panic! if any pixels are out of bounds. You should use this if you have your own wrapping system implemented
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Wrapping
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