pub trait ToTransformComponent {
// Required method
fn to_transform_component(
&self,
_dest: &mut ThinVec<TransformComponent>,
) -> Result<(), ()>;
}Expand description
Converts a transform operation into a transform component.
Required Methods§
Sourcefn to_transform_component(
&self,
_dest: &mut ThinVec<TransformComponent>,
) -> Result<(), ()>
fn to_transform_component( &self, _dest: &mut ThinVec<TransformComponent>, ) -> Result<(), ()>
Attempt to convert self into a transform component.
Implementations append the resulting component to dest. Returning
Err(()) indicates that the transform operation cannot currently be
represented as a transform component.