Struct fidl_fuchsia_ui_gfx::FactoredTransform
source · pub struct FactoredTransform {
pub translation: Vec3,
pub scale: Vec3,
pub anchor: Vec3,
pub rotation: Quaternion,
}
Fields§
§translation: Vec3
§scale: Vec3
§anchor: Vec3
Point around which rotation and scaling occur.
rotation: Quaternion
Trait Implementations§
source§impl Clone for FactoredTransform
impl Clone for FactoredTransform
source§fn clone(&self) -> FactoredTransform
fn clone(&self) -> FactoredTransform
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FactoredTransform
impl Debug for FactoredTransform
source§impl Decode<FactoredTransform> for FactoredTransform
impl Decode<FactoredTransform> for FactoredTransform
source§impl Encode<FactoredTransform> for &FactoredTransform
impl Encode<FactoredTransform> for &FactoredTransform
source§impl<T0: Encode<Vec3>, T1: Encode<Vec3>, T2: Encode<Vec3>, T3: Encode<Quaternion>> Encode<FactoredTransform> for (T0, T1, T2, T3)
impl<T0: Encode<Vec3>, T1: Encode<Vec3>, T2: Encode<Vec3>, T3: Encode<Quaternion>> Encode<FactoredTransform> for (T0, T1, T2, T3)
source§impl PartialEq<FactoredTransform> for FactoredTransform
impl PartialEq<FactoredTransform> for FactoredTransform
source§fn eq(&self, other: &FactoredTransform) -> bool
fn eq(&self, other: &FactoredTransform) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FactoredTransform> for FactoredTransform
impl PartialOrd<FactoredTransform> for FactoredTransform
source§fn partial_cmp(&self, other: &FactoredTransform) -> Option<Ordering>
fn partial_cmp(&self, other: &FactoredTransform) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for FactoredTransform
impl TypeMarker for FactoredTransform
§type Owned = FactoredTransform
type Owned = FactoredTransform
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(context: Context) -> usize
fn inline_align(context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(context: Context) -> usize
fn inline_size(context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
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 FactoredTransform
impl ValueTypeMarker for FactoredTransform
§type Borrowed<'a> = &'a <FactoredTransform as TypeMarker>::Owned
type Borrowed<'a> = &'a <FactoredTransform as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more