Skip to main content

PlaceTarget

Trait PlaceTarget 

Source
pub trait PlaceTarget {
    // Required method
    fn place(&self, x: f32, y: f32);
}
Expand description

What a node-backed Placeable tells when its parent places it.

Required Methods§

Source

fn place(&self, x: f32, y: f32)

Places the node at (x, y) in its parent.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F: Fn(f32, f32)> PlaceTarget for F