pub struct SpriteMutRef<'spr> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<'spr> Debug for SpriteMutRef<'spr>
impl<'spr> Debug for SpriteMutRef<'spr>
Source§impl<'spr> DrawSpriteTrait for SpriteMutRef<'spr>
impl<'spr> DrawSpriteTrait for SpriteMutRef<'spr>
Source§unsafe fn get_pixel_unchecked(&self, pos: Vec2d<u32>) -> Color
unsafe fn get_pixel_unchecked(&self, pos: Vec2d<u32>) -> Color
§Safety
its up to the caller to make sure that the given position is in bounds
Source§unsafe fn set_pixel_unchecked(&mut self, pos: Vec2d<u32>, col: Color)
unsafe fn set_pixel_unchecked(&mut self, pos: Vec2d<u32>, col: Color)
§Safety
its up to the caller to make sure that the given position is in bounds
fn get_pixel(&self, pos: Vec2d<i32>) -> Option<Color>
fn set_pixel(&mut self, pos: Vec2d<i32>, col: Color)
fn size(&self) -> Vec2d<u32>
Source§impl<'spr> Drop for SpriteMutRef<'spr>
impl<'spr> Drop for SpriteMutRef<'spr>
impl<'spr> Send for SpriteMutRef<'spr>
Auto Trait Implementations§
impl<'spr> Freeze for SpriteMutRef<'spr>
impl<'spr> !RefUnwindSafe for SpriteMutRef<'spr>
impl<'spr> !Sync for SpriteMutRef<'spr>
impl<'spr> Unpin for SpriteMutRef<'spr>
impl<'spr> !UnwindSafe for SpriteMutRef<'spr>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more