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: f32The location of the origin of the rectangle in the x-axis.
y: f32The location of the origin of the rectangle in the y-axis.
width: f32The distance along the x-axis.
If width is positive, the region includes x values starting at x and
increasing along the x-axis. If width is negative, the region includes
x values starting at x and decreasing along the x-axis.
height: f32The distance along the y-axis.
If height is positive, the region includes y values starting at y
and increasing along the y-axis. If height is negative, the region
includes y values starting at y and decreasing along the y-axis.
Trait Implementations§
Source§impl<D> Decode<RectF, D> for RectFwhere
D: ResourceDialect,
impl<D> Decode<RectF, D> for RectFwhere
D: ResourceDialect,
Source§impl PartialOrd for RectF
impl PartialOrd for RectF
Source§impl TypeMarker for RectF
impl TypeMarker for RectF
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for RectF
impl ValueTypeMarker for RectF
Source§type Borrowed<'a> = &'a RectF
type Borrowed<'a> = &'a RectF
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<RectF as TypeMarker>::Owned,
) -> <RectF as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RectF as TypeMarker>::Owned, ) -> <RectF as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.impl Copy for RectF
impl Persistable 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 UnwindSafe for RectF
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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
T to [Self]