#[repr(C)]pub struct RectU {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
}Expand description
An integral, rectangular, axis-aligned region in a 2D cartesian space, with unsigned location and distance fields.
This type does not specify units. Protocols that use this type should specify the characteristics of the vector space, including orientation and units.
Fields§
§x: u32§y: u32§width: u32§height: u32Trait Implementations§
Source§impl<'a, ___E> Encode<RectU, ___E> for &'a RectUwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<RectU, ___E> for &'a RectUwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<RectU, ___E> for RectUwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<RectU, ___E> for RectUwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<RectU, RectU>
const COPY_OPTIMIZATION: CopyOptimization<RectU, RectU>
Source§impl FromWireRef<RectU> for RectU
impl FromWireRef<RectU> for RectU
Source§fn from_wire_ref(wire: &RectU) -> RectU
fn from_wire_ref(wire: &RectU) -> RectU
Converts the given reference to this type.
Source§impl Ord for RectU
impl Ord for RectU
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RectU
impl PartialOrd for RectU
impl Copy for RectU
impl Eq for RectU
impl StructuralPartialEq for RectU
Auto Trait Implementations§
impl Freeze for RectU
impl RefUnwindSafe for RectU
impl Send for RectU
impl Sync for RectU
impl Unpin for RectU
impl UnsafeUnpin for RectU
impl UnwindSafe for RectU
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]