#[repr(C)]pub struct RectF {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
A floating point, rectangular, axis-aligned region in a 2D cartesian space.
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: f32§y: f32§width: f32§height: f32Trait Implementations§
Source§impl<'a, ___E> Encode<RectF, ___E> for &'a RectFwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<RectF, ___E> for &'a RectFwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<RectF, ___E> for RectFwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<RectF, ___E> for RectFwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<RectF, RectF>
const COPY_OPTIMIZATION: CopyOptimization<RectF, RectF>
Source§impl FromWireRef<RectF> for RectF
impl FromWireRef<RectF> for RectF
Source§fn from_wire_ref(wire: &RectF) -> RectF
fn from_wire_ref(wire: &RectF) -> RectF
Converts the given reference to this type.
Source§impl PartialOrd for RectF
impl PartialOrd for RectF
impl Copy for RectF
impl StructuralPartialEq for RectF
Auto Trait Implementations§
impl Freeze for RectF
impl RefUnwindSafe for RectF
impl Send for RectF
impl Sync for RectF
impl Unpin for RectF
impl UnsafeUnpin for RectF
impl UnwindSafe for RectF
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]