Trait figures::Px2D

source ·
pub trait Px2D: FromComponents<Px> {
    // Provided method
    fn px(x: impl Into<Px>, y: impl Into<Px>) -> Self { ... }
}
Expand description

Constructors for types that are composed of two Px components.

Provided Methods§

source

fn px(x: impl Into<Px>, y: impl Into<Px>) -> Self

Returns a new value containing the x and y components converted into Px.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Px2D for Twhere T: FromComponents<Px>,