Skip to main content

ToTransformComponent

Trait ToTransformComponent 

Source
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§

Source

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.

Implementors§

Source§

impl<Angle, Number, Length, Integer, LengthPercentage> ToTransformComponent for TransformOperation<Angle, Number, Length, Integer, LengthPercentage>
where Angle: Zero + ToTyped, Number: PartialEq + ToFloat + ToTyped, Length: ToTyped, LengthPercentage: Zero + ToTyped + ZeroNoPercent,