pub struct Rectangle { /* private fields */ }
Implementations
sourceimpl Rectangle
impl Rectangle
pub fn new(x: i32, y: i32, width: u32, height: u32) -> Self
pub fn x(&self) -> i32
pub fn set_x(&mut self, x: i32)
pub fn y(&self) -> i32
pub fn set_y(&mut self, y: i32)
pub fn width(&self) -> u32
pub fn set_width(&mut self, width: u32)
pub fn height(&self) -> u32
pub fn set_height(&mut self, height: u32)
Trait Implementations
impl Copy for Rectangle
Auto Trait Implementations
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more