Trait MeshGeometry
pub trait MeshGeometry: MeshTopology {
type Map<'a>: GeometryMap
where Self: 'a;
// Required methods
fn geometric_dimension(&self) -> usize;
fn geometry_map(&self, entity: MeshEntity) -> Option<Self::Map<'_>>;
}Description
Geometry ownership contract paired with MeshTopology.
Required Associated Types§
type Map<'a>: GeometryMap
where
Self: 'a
type Map<'a>: GeometryMap where Self: 'a
Concrete map type; implementations may use an enum for mixed cells.
Required Methods§
fn geometric_dimension(&self) -> usize
fn geometric_dimension(&self) -> usize
Dimension of embedding physical coordinates.
fn geometry_map(&self, entity: MeshEntity) -> Option<Self::Map<'_>>
fn geometry_map(&self, entity: MeshEntity) -> Option<Self::Map<'_>>
Geometry map for a valid mesh entity.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.