logo
pub struct MatrixEntry {}

Implementations

Determines if the only difference between two transforms is a translation and if so returns what the x, y, and z components of the translation are.

If the difference between the two translations involves anything other than a translation then the fn returns false.

other

A second reference transform

x

The destination for the x-component of the translation

y

The destination for the y-component of the translation

z

The destination for the z-component of the translation

Returns

true if the only difference between the transform of self and the transform of other is a translation, otherwise false.

Resolves the current self transform into a Matrix by combining the sequence of operations that have been applied to build up the current transform.

There are two possible ways that this fn may return its result depending on whether it’s possible to directly point to an internal Matrix or whether the result needs to be composed of multiple operations.

If an internal matrix contains the required result then this fn will directly return a pointer to that matrix, otherwise if the fn returns None then matrix will be initialized to match the transform of self.

matrix will be left untouched if a direct pointer is returned.

matrix

The potential destination for the transform as a matrix

Returns

A direct pointer to a Matrix transform or None and in that case matrix will be initialized with the effective transform represented by self.

Determines whether self is known to represent an identity transform.

If this returns true then the entry is definitely the identity matrix. If it returns false it may or may not be the identity matrix but no expensive comparison is performed to verify it.

Returns

true if self is definitely an identity transform, otherwise false.

Trait Implementations

Formats the value using the given formatter. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert into color

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Sets value as a parameter of self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.