pub enum Linearity<T> {
Invariant,
Applied(T),
Drop,
Unsupported,
}Expand description
What a component becomes when its entity’s local space is mapped by a crate::Linear
(Component::apply_linear).
Variants§
Invariant
It holds no local-space geometry: kept as it is.
Applied(T)
It holds geometry, mapped.
Drop
What it says is no longer true of the mapped geometry (a file the geometry was read from): removed.
Unsupported
It cannot follow: the entity is left as it was.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Linearity<T>
Auto Trait Implementations§
impl<T> Forget for Linearity<T>
impl<T> Freeze for Linearity<T>where
T: Freeze,
impl<T> RefUnwindSafe for Linearity<T>where
T: RefUnwindSafe,
impl<T> Send for Linearity<T>where
T: Send,
impl<T> Sync for Linearity<T>where
T: Sync,
impl<T> Unpin for Linearity<T>where
T: Unpin,
impl<T> UnsafeUnpin for Linearity<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Linearity<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