pub struct Rect(/* private fields */);Expand description
Wrapper around D3D12_RECT structure
Implementations§
Source§impl Rect
impl Rect
pub fn set_left(&mut self, left: i32) -> &mut Self
pub fn with_left(self, left: i32) -> Self
pub fn left(&self) -> i32
pub fn set_top(&mut self, top: i32) -> &mut Self
pub fn with_top(self, top: i32) -> Self
pub fn top(&self) -> i32
pub fn set_right(&mut self, right: i32) -> &mut Self
pub fn with_right(self, right: i32) -> Self
pub fn right(&self) -> i32
pub fn set_bottom(&mut self, bottom: i32) -> &mut Self
pub fn with_bottom(self, bottom: i32) -> Self
pub fn bottom(&self) -> i32
Trait Implementations§
Source§impl Ord for Rect
impl Ord for Rect
Source§impl PartialOrd for Rect
impl PartialOrd for Rect
impl Copy for Rect
impl Eq for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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