pub trait MetaInf {
Show 13 methods
// Required methods
fn id(&self) -> MetaId;
fn get_krp(&self) -> &Krp;
fn get_tcm_mut(&mut self) -> &mut TCMaterial;
fn get_tcm(&self) -> &TCMaterial;
// Provided methods
fn as_sphere(&self) -> &MetaSphere { ... }
fn as_box(&self) -> &MetaBox { ... }
fn as_capsule(&self) -> &MetaCapsule { ... }
fn as_cylinder(&self) -> &MetaCylinder { ... }
fn as_plane(&self) -> &MetaPlane { ... }
fn as_convex(&self) -> &MetaConvex { ... }
fn as_trimesh(&self) -> &MetaTriMesh { ... }
fn as_composite(&self) -> &MetaComposite { ... }
fn dup(&self) -> Box<dyn MetaInf> { ... }
}
Expand description
MetaInf
Required Methods§
sourcefn get_tcm_mut(&mut self) -> &mut TCMaterial
fn get_tcm_mut(&mut self) -> &mut TCMaterial
every struct has tcm
sourcefn get_tcm(&self) -> &TCMaterial
fn get_tcm(&self) -> &TCMaterial
every struct has tcm
Provided Methods§
sourcefn as_sphere(&self) -> &MetaSphere
fn as_sphere(&self) -> &MetaSphere
as MetaSphere
sourcefn as_capsule(&self) -> &MetaCapsule
fn as_capsule(&self) -> &MetaCapsule
as MetaCapsule
sourcefn as_cylinder(&self) -> &MetaCylinder
fn as_cylinder(&self) -> &MetaCylinder
as MetaCylinder
sourcefn as_convex(&self) -> &MetaConvex
fn as_convex(&self) -> &MetaConvex
as MetaConvex
sourcefn as_trimesh(&self) -> &MetaTriMesh
fn as_trimesh(&self) -> &MetaTriMesh
as MetaTriMesh
sourcefn as_composite(&self) -> &MetaComposite
fn as_composite(&self) -> &MetaComposite
as MetaComposite