pub trait PlacementModifierNode:
Send
+ Sync
+ 'static {
// Required method
fn transform_position(&self, position: PxPosition) -> PxPosition;
// Provided method
fn diagnostic_name(&self) -> &'static str { ... }
}Expand description
A node-local placement modifier that transforms the current node position without affecting measured size.
Required Methods§
Sourcefn transform_position(&self, position: PxPosition) -> PxPosition
fn transform_position(&self, position: PxPosition) -> PxPosition
Returns the transformed node position relative to the parent.
Provided Methods§
Sourcefn diagnostic_name(&self) -> &'static str
fn diagnostic_name(&self) -> &'static str
Returns the concrete modifier name used by layout inspection.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".