Skip to main content

Reversible

Trait Reversible 

Source
pub trait Reversible: Sized {
    // Required method
    fn reversed(&self) -> Self;
}
Expand description

Reversible geometry: the same point set, traversed the other way.

Required Methods§

Source

fn reversed(&self) -> Self

This geometry with its parameter direction reversed.

The domain is preserved, so a curve reversed still runs over the same interval; only the direction of travel changes. Preserving the domain matters because trimming ranges elsewhere refer to it.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§