Skip to main content

Geometry

Trait Geometry 

Source
pub trait Geometry {
    type T: Scalar;
    type Point<'a>: Point<T = Self::T>
       where Self: 'a;
    type PointIter<'a>: Iterator<Item = Self::Point<'a>>
       where Self: 'a;

    // Required methods
    fn points(&self) -> Self::PointIter<'_>;
    fn point_count(&self) -> usize;
    fn degree(&self) -> usize;
}
Expand description

The geometry of an entity

The geometry contains information about all points that make up the entity.

Required Associated Types§

Source

type T: Scalar

Scalar type

Source

type Point<'a>: Point<T = Self::T> where Self: 'a

Point Type

Source

type PointIter<'a>: Iterator<Item = Self::Point<'a>> where Self: 'a

Point iterator

Required Methods§

Source

fn points(&self) -> Self::PointIter<'_>

Points

Source

fn point_count(&self) -> usize

Point count

Source

fn degree(&self) -> usize

Embedded superdegree

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Scalar, E: MappedFiniteElement> Geometry for MixedEntityGeometry<'_, T, E>

Source§

type T = T

Source§

type Point<'a> = Point<'a, T> where Self: 'a

Source§

type PointIter<'a> = PointIter<'a, T> where Self: 'a

Source§

impl<T: Scalar, E: MappedFiniteElement> Geometry for SingleElementEntityGeometry<'_, T, E>

Source§

type T = T

Source§

type Point<'a> = Point<'a, T> where Self: 'a

Source§

type PointIter<'a> = PointIter<'a, T> where Self: 'a