#[repr(u32)]pub enum Transform {
Position = 0,
Rotation = 1,
Scale = 2,
ParentId = 3,
WorldPosition = 4,
WorldRotation = 5,
WorldScale = 6,
}Variants§
Position = 0
‘Vec3’
Rotation = 1
‘Quat’
Scale = 2
‘Vec3’
ParentId = 3
EntityHandle
WorldPosition = 4
‘Vec3’
WorldRotation = 5
‘Quat’
WorldScale = 6
‘Vec3’
Trait Implementations§
Source§impl CheckedBitPattern for Transform
impl CheckedBitPattern for Transform
Source§type Bits = u32
type Bits = u32
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
fn is_valid_bit_pattern(bits: &Self::Bits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl TryFromPrimitive for Transform
impl TryFromPrimitive for Transform
impl Copy for Transform
impl Eq for Transform
impl NoUninit for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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