#[repr(C)]pub struct SizeF {
pub width: f32,
pub height: f32,
}Expand description
The floating point dimensions of a rectangular 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.
This type allows for negative dimensions, to which protocols can give semantics. Protocols that use this type should specify whether negative dimensions are meaningful, and, if they are meaningful, what they mean.
Fields§
§width: f32§height: f32Trait Implementations§
Source§impl<'a, ___E> Encode<SizeF, ___E> for &'a SizeFwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<SizeF, ___E> for &'a SizeFwhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> Encode<SizeF, ___E> for SizeFwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<SizeF, ___E> for SizeFwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<SizeF, SizeF>
const COPY_OPTIMIZATION: CopyOptimization<SizeF, SizeF>
Source§impl FromWireRef<SizeF> for SizeF
impl FromWireRef<SizeF> for SizeF
Source§fn from_wire_ref(wire: &SizeF) -> SizeF
fn from_wire_ref(wire: &SizeF) -> SizeF
Converts the given reference to this type.
Source§impl PartialOrd for SizeF
impl PartialOrd for SizeF
impl Copy for SizeF
impl StructuralPartialEq for SizeF
Auto Trait Implementations§
impl Freeze for SizeF
impl RefUnwindSafe for SizeF
impl Send for SizeF
impl Sync for SizeF
impl Unpin for SizeF
impl UnsafeUnpin for SizeF
impl UnwindSafe for SizeF
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]