pub enum MaskValue {
Solid,
Empty,
Body1,
Body2,
}
Expand description
Replacement for the i8
datatype that can be passed to gen_sprite
.
Variants§
Solid
-1
: This pixel will always be a border.
Empty
0
: This pixel will always be empty.
Body1
1
: This pixel will either be empty or filled (body).
Body2
2
: This pixel will either be a border or filled (body).
Implementations§
Trait Implementations§
impl Eq for MaskValue
impl StructuralPartialEq for MaskValue
Auto Trait Implementations§
impl Freeze for MaskValue
impl RefUnwindSafe for MaskValue
impl Send for MaskValue
impl Sync for MaskValue
impl Unpin for MaskValue
impl UnwindSafe for MaskValue
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