Struct fidl_fuchsia_math::Rect
source · #[repr(C)]pub struct Rect {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
Expand description
An integral, 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: i32
The location of the origin of the rectangle in the x-axis.
y: i32
The location of the origin of the rectangle in the y-axis.
width: i32
The 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: i32
The 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: ResourceDialect> Decode<Rect, D> for Rect
impl<D: ResourceDialect> Decode<Rect, D> for Rect
source§impl<D: ResourceDialect, T0: Encode<i32, D>, T1: Encode<i32, D>, T2: Encode<i32, D>, T3: Encode<i32, D>> Encode<Rect, D> for (T0, T1, T2, T3)
impl<D: ResourceDialect, T0: Encode<i32, D>, T1: Encode<i32, D>, T2: Encode<i32, D>, T3: Encode<i32, D>> Encode<Rect, D> for (T0, T1, T2, T3)
source§impl Ord for Rect
impl Ord for Rect
source§impl PartialEq for Rect
impl PartialEq for Rect
source§impl PartialOrd for Rect
impl PartialOrd for Rect
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for Rect
impl TypeMarker for Rect
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 Rect
impl ValueTypeMarker for Rect
impl Copy for Rect
impl Eq for Rect
impl Persistable for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)