pub struct ViewportStruct {
pub x1: u16,
pub y1: u16,
pub x2: u16,
pub y2: u16,
}Expand description
ViewportStruct.
Fields§
§x1: u16X1, field 0.
y1: u16Y1, field 1.
x2: u16X2, field 2.
y2: u16Y2, field 3.
Trait Implementations§
Source§impl Clone for ViewportStruct
impl Clone for ViewportStruct
Source§fn clone(&self) -> ViewportStruct
fn clone(&self) -> ViewportStruct
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewportStruct
Source§impl Debug for ViewportStruct
impl Debug for ViewportStruct
Source§impl<'a> FromTlv<'a> for ViewportStruct
impl<'a> FromTlv<'a> for ViewportStruct
Source§impl PartialEq for ViewportStruct
impl PartialEq for ViewportStruct
impl StructuralPartialEq for ViewportStruct
Auto Trait Implementations§
impl Freeze for ViewportStruct
impl RefUnwindSafe for ViewportStruct
impl Send for ViewportStruct
impl Sync for ViewportStruct
impl Unpin for ViewportStruct
impl UnsafeUnpin for ViewportStruct
impl UnwindSafe for ViewportStruct
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