Struct MeshDefinition
pub struct MeshDefinition { /* private fields */ }Expand description
MeshDefinition: a model’s parts, from a root part with no boxes.
Implementations§
§impl MeshDefinition
impl MeshDefinition
pub fn new() -> MeshDefinition
pub fn new() -> MeshDefinition
Create an empty model mesh.
pub fn add_or_replace_child(
&mut self,
parent: PartId,
name: &str,
cubes: CubeListBuilder,
pose: PartPose,
) -> PartId
pub fn add_or_replace_child( &mut self, parent: PartId, name: &str, cubes: CubeListBuilder, pose: PartPose, ) -> PartId
Adds part name to parent, with cubes at pose
(PartDefinition.addOrReplaceChild). A part of that name already
there is replaced and its children kept.
Trait Implementations§
§impl Clone for MeshDefinition
impl Clone for MeshDefinition
§fn clone(&self) -> MeshDefinition
fn clone(&self) -> MeshDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for MeshDefinition
impl Debug for MeshDefinition
§impl Default for MeshDefinition
impl Default for MeshDefinition
§fn default() -> MeshDefinition
fn default() -> MeshDefinition
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for MeshDefinition
impl<'de> Deserialize<'de> for MeshDefinition
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeshDefinition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeshDefinition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for MeshDefinition
impl PartialEq for MeshDefinition
§impl Serialize for MeshDefinition
impl Serialize for MeshDefinition
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MeshDefinition
§impl TryFrom<MeshDefinitionData> for MeshDefinition
impl TryFrom<MeshDefinitionData> for MeshDefinition
§fn try_from(
data: MeshDefinitionData,
) -> Result<MeshDefinition, <MeshDefinition as TryFrom<MeshDefinitionData>>::Error>
fn try_from( data: MeshDefinitionData, ) -> Result<MeshDefinition, <MeshDefinition as TryFrom<MeshDefinitionData>>::Error>
Performs the conversion.
§impl TryFrom<String> for MeshDefinition
impl TryFrom<String> for MeshDefinition
Auto Trait Implementations§
impl Freeze for MeshDefinition
impl RefUnwindSafe for MeshDefinition
impl Send for MeshDefinition
impl Sync for MeshDefinition
impl Unpin for MeshDefinition
impl UnsafeUnpin for MeshDefinition
impl UnwindSafe for MeshDefinition
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