pub struct MaskHit {
pub at: (i32, i32),
pub threshold: u8,
pub hit: bool,
}Fields§
§at: (i32, i32)§threshold: u8§hit: boolImplementations§
Source§impl MaskHit
impl MaskHit
pub fn new(threshold: u8) -> Self
pub fn with_at(at: (i32, i32), threshold: u8) -> Self
pub fn with_point(at: Point, threshold: u8) -> Self
pub fn threshold(&mut self, threshold: u8) -> &mut Self
pub fn at(&mut self, at: (i32, i32)) -> &mut Self
pub fn at_point(&mut self, at: Point) -> &mut Self
pub fn reset(&mut self) -> &mut Self
pub fn is_hit(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MaskHit
impl RefUnwindSafe for MaskHit
impl Send for MaskHit
impl Sync for MaskHit
impl Unpin for MaskHit
impl UnsafeUnpin for MaskHit
impl UnwindSafe for MaskHit
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