jagua_rs::geometry::geo_traits

Trait Transformable

Source
pub trait Transformable: Clone {
    // Required method
    fn transform(&mut self, t: &Transformation) -> &mut Self;

    // Provided method
    fn transform_clone(&self, t: &Transformation) -> Self { ... }
}
Expand description

Trait for types that can be transformed by a Transformation.

Required Methods§

Source

fn transform(&mut self, t: &Transformation) -> &mut Self

Provided Methods§

Source

fn transform_clone(&self, t: &Transformation) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§