Type Alias QuaternionF

pub type QuaternionF = Vec4F;

Aliased Type§

struct QuaternionF {
    pub x: f32,
    pub y: f32,
    pub z: f32,
    pub w: f32,
}

Fields§

§x: f32§y: f32§z: f32§w: f32

Trait Implementations

§

impl Clone for Vec4F

§

fn clone(&self) -> Vec4F

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Vec4F

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<D> Decode<Vec4F, D> for Vec4F
where D: ResourceDialect,

§

fn new_empty() -> Vec4F

Creates a valid instance of Self. The specific value does not matter, since it will be overwritten by decode.
§

unsafe fn decode( &mut self, decoder: &mut Decoder<'_, D>, offset: usize, _depth: Depth, ) -> Result<(), Error>

Decodes an object of type T from the decoder’s buffers into self. Read more
§

impl PartialEq for Vec4F

§

fn eq(&self, other: &Vec4F) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Vec4F

§

fn partial_cmp(&self, other: &Vec4F) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl TypeMarker for Vec4F

§

type Owned = Vec4F

The owned Rust type which this FIDL type decodes into.
§

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.
§

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

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

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.
§

impl ValueTypeMarker for Vec4F

§

type Borrowed<'a> = &'a Vec4F

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
§

fn borrow( value: &<Vec4F as TypeMarker>::Owned, ) -> <Vec4F as ValueTypeMarker>::Borrowed<'_>

Cheaply converts from &Self::Owned to Self::Borrowed.
§

impl Copy for Vec4F

§

impl Persistable for Vec4F

§

impl StructuralPartialEq for Vec4F