EmptyMeshPayload

Struct EmptyMeshPayload 

Source
pub struct EmptyMeshPayload<T: MeshType> { /* private fields */ }
Expand description

An empty mesh payload that can be used when no additional data is needed.

Trait Implementations§

Source§

impl<T: Clone + MeshType> Clone for EmptyMeshPayload<T>

Source§

fn clone(&self) -> EmptyMeshPayload<T>

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

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

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + MeshType> Debug for EmptyMeshPayload<T>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<T: Default + MeshType> Default for EmptyMeshPayload<T>

Source§

fn default() -> EmptyMeshPayload<T>

Returns the “default value” for a type. Read more
Source§

impl<T: MeshType> Display for EmptyMeshPayload<T>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<T: PartialEq + MeshType> PartialEq for EmptyMeshPayload<T>

Source§

fn eq(&self, other: &EmptyMeshPayload<T>) -> 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.
Source§

impl<const D: usize, T: EuclideanMeshType<D>> Transformable<D> for EmptyMeshPayload<T>

Source§

type Rot = <T as EuclideanMeshType<D>>::Rot

The rotation type used in the payload.
Source§

type S = <T as EuclideanMeshType<D>>::S

The scalar type of the coordinates used in the payload. Mainly to choose between f32 and f64. But could also work with integers etc…
Source§

type Trans = <T as EuclideanMeshType<D>>::Trans

The transformation type used in the payload.
Source§

type Vec = <T as EuclideanMeshType<D>>::Vec

The vector type used in the payload.
Source§

fn transform(&mut self, _: &Self::Trans) -> &mut Self

Returns the coordinates of the payload as a reference.
Source§

fn lerp(&mut self, _: &Self, _: Self::S) -> &mut Self

Interpolates between two payloads.
Source§

fn transformed(&self, t: &Self::Trans) -> Self

Returns the coordinates of the payload as a reference.
Source§

fn translated(&self, v: &Self::Vec) -> Self

Returns a translated clone of the payload.
Source§

fn scaled(&self, s: &Self::Vec) -> Self

Returns the scaled clone of the payload.
Source§

fn rotated(&self, r: &Self::Rot) -> Self

Returns the rotated clone of the payload.
Source§

fn lerped(&self, other: &Self, t: Self::S) -> Self

Interpolates between two payloads.
Source§

fn translate(&mut self, v: &Self::Vec) -> &mut Self

Returns a translated clone of the payload.
Source§

fn scale(&mut self, s: &Self::Vec) -> &mut Self

Returns the scaled clone of the payload.
Source§

fn rotate(&mut self, r: &Self::Rot) -> &mut Self

Returns the rotated clone of the payload.
Source§

impl<T: MeshType> MeshPayload<T> for EmptyMeshPayload<T>

Source§

impl<T: MeshType> StructuralPartialEq for EmptyMeshPayload<T>

Auto Trait Implementations§

§

impl<T> Freeze for EmptyMeshPayload<T>

§

impl<T> RefUnwindSafe for EmptyMeshPayload<T>
where T: RefUnwindSafe,

§

impl<T> Send for EmptyMeshPayload<T>
where T: Send,

§

impl<T> Sync for EmptyMeshPayload<T>
where T: Sync,

§

impl<T> Unpin for EmptyMeshPayload<T>
where T: Unpin,

§

impl<T> UnwindSafe for EmptyMeshPayload<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,