pub struct Shape { /* private fields */ }Expand description
The shape of a rigid body.
Contains a rotation/translation offset and a size.
Implementations§
Trait Implementations§
impl Copy for Shape
Source§impl<'de> Deserialize<'de> for Shape
impl<'de> Deserialize<'de> for Shape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DeserializeProperty for Shape
impl DeserializeProperty for Shape
fn deserialize( deserializer: &mut dyn Deserializer<'_>, property_type_registry: &PropertyTypeRegistry, ) -> Result<Box<dyn Property>, Error>
Source§impl Properties for Shape
impl Properties for Shape
fn prop(&self, name: &str) -> Option<&dyn Property>
fn prop_mut(&mut self, name: &str) -> Option<&mut dyn Property>
fn prop_with_index(&self, index: usize) -> Option<&dyn Property>
fn prop_with_index_mut(&mut self, index: usize) -> Option<&mut dyn Property>
fn prop_name(&self, index: usize) -> Option<&str>
fn prop_len(&self) -> usize
fn iter_props(&self) -> PropertyIter<'_>
fn set_prop(&mut self, name: &str, value: &(dyn Property + 'static))
fn to_dynamic(&self) -> DynamicProperties
Source§impl Property for Shape
impl Property for Shape
fn type_name(&self) -> &str
fn any(&self) -> &dyn Any
fn any_mut(&mut self) -> &mut dyn Any
fn clone_prop(&self) -> Box<dyn Property>
fn set(&mut self, value: &dyn Property)
fn apply(&mut self, value: &dyn Property)
fn as_properties(&self) -> Option<&dyn Properties>
fn serializable<'a>( &'a self, registry: &'a PropertyTypeRegistry, ) -> Serializable<'a>
fn property_type(&self) -> PropertyType
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnsafeUnpin for Shape
impl UnwindSafe for Shape
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.