Enum rbx_types::PhysicalProperties
source · pub enum PhysicalProperties {
Default,
Custom(CustomPhysicalProperties),
}
Expand description
Represents the physical properties that parts can have.
Equivalent to Roblox’s PhysicalProperties
type, with
the difference that Default
is a variant here, instead of a hidden state
that PhysicalProperties
can have.
Variants§
Default
Custom(CustomPhysicalProperties)
Trait Implementations§
source§impl Clone for PhysicalProperties
impl Clone for PhysicalProperties
source§fn clone(&self) -> PhysicalProperties
fn clone(&self) -> PhysicalProperties
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 Debug for PhysicalProperties
impl Debug for PhysicalProperties
source§impl From<CustomPhysicalProperties> for PhysicalProperties
impl From<CustomPhysicalProperties> for PhysicalProperties
source§fn from(value: CustomPhysicalProperties) -> Self
fn from(value: CustomPhysicalProperties) -> Self
Converts to this type from the input type.
source§impl From<PhysicalProperties> for Variant
impl From<PhysicalProperties> for Variant
source§fn from(value: PhysicalProperties) -> Self
fn from(value: PhysicalProperties) -> Self
Converts to this type from the input type.
source§impl PartialEq for PhysicalProperties
impl PartialEq for PhysicalProperties
source§fn eq(&self, other: &PhysicalProperties) -> bool
fn eq(&self, other: &PhysicalProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PhysicalProperties
impl StructuralPartialEq for PhysicalProperties
Auto Trait Implementations§
impl RefUnwindSafe for PhysicalProperties
impl Send for PhysicalProperties
impl Sync for PhysicalProperties
impl Unpin for PhysicalProperties
impl UnwindSafe for PhysicalProperties
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