pub struct MeshPlaneSectionRegistry { /* private fields */ }Expand description
Ordered executable mesh plane-section providers.
Only unsupported/unavailable providers permit fallback. Geometry, degeneracy, budget, cancellation, and contract errors fail immediately.
Implementations§
Source§impl MeshPlaneSectionRegistry
impl MeshPlaneSectionRegistry
Sourcepub fn register<P>(&mut self, priority: i32, provider: P)where
P: MeshPlaneSection + 'static,
pub fn register<P>(&mut self, priority: i32, provider: P)where
P: MeshPlaneSection + 'static,
Register an implementation. Higher priorities run first.
Sourcepub fn register_conformant<P>(
&mut self,
priority: i32,
provider: P,
) -> Result<(), Box<ConformanceReport>>where
P: MeshPlaneSection + 'static,
pub fn register_conformant<P>(
&mut self,
priority: i32,
provider: P,
) -> Result<(), Box<ConformanceReport>>where
P: MeshPlaneSection + 'static,
Validate a provider with the shared conformance suite before registration.
Sourcepub fn register_arc(
&mut self,
priority: i32,
provider: Arc<dyn MeshPlaneSection>,
)
pub fn register_arc( &mut self, priority: i32, provider: Arc<dyn MeshPlaneSection>, )
Register a shared implementation. Higher priorities run first.
Sourcepub fn providers(&self) -> impl Iterator<Item = &dyn MeshPlaneSection>
pub fn providers(&self) -> impl Iterator<Item = &dyn MeshPlaneSection>
Registered providers in dispatch order.
Sourcepub fn section(
&self,
mesh: &TriMesh,
frame: Frame3,
limits: SectionLimits,
options: &ExecutionOptions,
) -> GeomResult<SectionOutcome>
pub fn section( &self, mesh: &TriMesh, frame: Frame3, limits: SectionLimits, options: &ExecutionOptions, ) -> GeomResult<SectionOutcome>
Validate and execute one plane-section request.
Trait Implementations§
Source§impl Clone for MeshPlaneSectionRegistry
impl Clone for MeshPlaneSectionRegistry
Source§fn clone(&self) -> MeshPlaneSectionRegistry
fn clone(&self) -> MeshPlaneSectionRegistry
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MeshPlaneSectionRegistry
impl Debug for MeshPlaneSectionRegistry
Source§impl Default for MeshPlaneSectionRegistry
impl Default for MeshPlaneSectionRegistry
Source§fn default() -> MeshPlaneSectionRegistry
fn default() -> MeshPlaneSectionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MeshPlaneSectionRegistry
impl !RefUnwindSafe for MeshPlaneSectionRegistry
impl Send for MeshPlaneSectionRegistry
impl Sync for MeshPlaneSectionRegistry
impl Unpin for MeshPlaneSectionRegistry
impl !UnwindSafe for MeshPlaneSectionRegistry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more