Skip to main content

LineExt

Trait LineExt 

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

Runtime helpers for Line.

Required Methods§

Source

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

Compute the overall freedom of this line by merging the freedom of its start and end 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 LineExt for Line

Source§

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

Implementors§