pub struct Text { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Graphic for Text
impl Graphic for Text
fn draw(&self, display: &mut Display)
fn get_position(&self) -> (isize, isize)
fn set_position(&mut self, pos_x: isize, pos_y: isize)
fn get_area(&self) -> Vec<(isize, isize)>
fn check_collision(&self, pos_x: isize, pos_y: isize) -> bool
fn move_position(&mut self, dx: isize, dy: isize)
fn update_speeds(&mut self, _x: f32, _y: f32)
fn update_position(&mut self)
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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