#[repr(C)]pub struct GenericMatrix<T> {
pub a: T,
pub b: T,
pub c: T,
pub d: T,
pub e: T,
pub f: T,
}
Expand description
A generic 2D transformation matrix.
Fields§
§a: T
§b: T
§c: T
§d: T
§e: T
§f: T
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for GenericMatrix<T>
impl<T: Clone> Clone for GenericMatrix<T>
source§fn clone(&self) -> GenericMatrix<T>
fn clone(&self) -> GenericMatrix<T>
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<T: Debug> Debug for GenericMatrix<T>
impl<T: Debug> Debug for GenericMatrix<T>
source§impl<'de, T> Deserialize<'de> for GenericMatrix<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for GenericMatrix<T>where
T: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Into<f64>> From<GenericMatrix<T>> for Transform3D<f64>
impl<T: Into<f64>> From<GenericMatrix<T>> for Transform3D<f64>
source§impl<T> MallocSizeOf for GenericMatrix<T>where
T: MallocSizeOf,
impl<T> MallocSizeOf for GenericMatrix<T>where
T: MallocSizeOf,
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl<T: PartialEq> PartialEq for GenericMatrix<T>
impl<T: PartialEq> PartialEq for GenericMatrix<T>
source§impl<T> Serialize for GenericMatrix<T>where
T: Serialize,
impl<T> Serialize for GenericMatrix<T>where
T: Serialize,
source§impl<T> SpecifiedValueInfo for GenericMatrix<T>
impl<T> SpecifiedValueInfo for GenericMatrix<T>
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
source§impl<T> ToAnimatedValue for GenericMatrix<T>where
T: ToAnimatedValue,
impl<T> ToAnimatedValue for GenericMatrix<T>where
T: ToAnimatedValue,
source§type AnimatedValue = GenericMatrix<<T as ToAnimatedValue>::AnimatedValue>
type AnimatedValue = GenericMatrix<<T as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
source§fn from_animated_value(from: Self::AnimatedValue) -> Self
fn from_animated_value(from: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.
source§fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
Converts this value to an animated value.
source§impl<T> ToComputedValue for GenericMatrix<T>where
T: ToComputedValue,
impl<T> ToComputedValue for GenericMatrix<T>where
T: ToComputedValue,
source§type ComputedValue = GenericMatrix<<T as ToComputedValue>::ComputedValue>
type ComputedValue = GenericMatrix<<T as ToComputedValue>::ComputedValue>
The computed value type we’re going to be converted to.
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§impl<T> ToCss for GenericMatrix<T>where
T: ToCss,
impl<T> ToCss for GenericMatrix<T>where
T: ToCss,
source§impl<T> ToResolvedValue for GenericMatrix<T>where
T: ToResolvedValue,
impl<T> ToResolvedValue for GenericMatrix<T>where
T: ToResolvedValue,
source§type ResolvedValue = GenericMatrix<<T as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericMatrix<<T as ToResolvedValue>::ResolvedValue>
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
source§impl<T> ToShmem for GenericMatrix<T>where
T: ToShmem,
impl<T> ToShmem for GenericMatrix<T>where
T: ToShmem,
impl<T: Copy> Copy for GenericMatrix<T>
impl<T> StructuralPartialEq for GenericMatrix<T>
Auto Trait Implementations§
impl<T> Freeze for GenericMatrix<T>where
T: Freeze,
impl<T> RefUnwindSafe for GenericMatrix<T>where
T: RefUnwindSafe,
impl<T> Send for GenericMatrix<T>where
T: Send,
impl<T> Sync for GenericMatrix<T>where
T: Sync,
impl<T> Unpin for GenericMatrix<T>where
T: Unpin,
impl<T> UnwindSafe for GenericMatrix<T>where
T: UnwindSafe,
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert