Skip to main content

ControlPointSplineExt

Trait ControlPointSplineExt 

Source
pub trait ControlPointSplineExt {
    // Required method
    fn freedom(
        &self,
        lookup: impl Fn(ObjectId) -> Option<Freedom>,
    ) -> Option<Freedom>;
}
Expand description

Runtime helpers for ControlPointSpline.

Required Methods§

Source

fn freedom( &self, lookup: impl Fn(ObjectId) -> Option<Freedom>, ) -> Option<Freedom>

Compute the overall freedom of this spline by merging the freedom of its control points. Returns None if any required point lookup failed.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ControlPointSplineExt for ControlPointSpline

Source§

fn freedom( &self, lookup: impl Fn(ObjectId) -> Option<Freedom>, ) -> Option<Freedom>

Implementors§