pub struct HyperPixel { /* private fields */ }
Implementations§
Source§impl HyperPixel
impl HyperPixel
Sourcepub fn new(selector: &str) -> HyperPixel
pub fn new(selector: &str) -> HyperPixel
Create an instance of HyperPixel from a selector to a canvas element.
Sourcepub fn dimensions(&self) -> (usize, usize)
pub fn dimensions(&self) -> (usize, usize)
Dimensions of the screen as tuple (width,height).
Auto Trait Implementations§
impl Freeze for HyperPixel
impl RefUnwindSafe for HyperPixel
impl Send for HyperPixel
impl Sync for HyperPixel
impl Unpin for HyperPixel
impl UnwindSafe for HyperPixel
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