Skip to main content

ArcExt

Trait ArcExt 

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

Runtime helpers for Arc.

Required Methods§

Source

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

Compute the overall freedom of this arc by merging the freedom of its start, end, and center points. Returns None if a 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 ArcExt for Arc

Source§

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

Implementors§