pub trait SetPosition: Sized {
// Required method
fn properties(&mut self) -> &mut Properties;
// Provided methods
fn x(self, x: f32) -> Self { ... }
fn y(self, y: f32) -> Self { ... }
fn z(self, z: f32) -> Self { ... }
fn xy(self, p: Point2) -> Self { ... }
fn xyz(self, p: Point3) -> Self { ... }
fn x_y(self, x: f32, y: f32) -> Self { ... }
fn x_y_z(self, x: f32, y: f32, z: f32) -> Self { ... }
}
Expand description
An API for setting the position::Properties.
Required Methods§
Sourcefn properties(&mut self) -> &mut Properties
fn properties(&mut self) -> &mut Properties
Provide a mutable reference to the position::Properties for updating.
Provided Methods§
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.