Trait figures::Lp2D

source ·
pub trait Lp2D: FromComponents<Lp> {
    // Provided methods
    fn points(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self { ... }
    fn cm(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self { ... }
    fn mm(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self { ... }
    fn inches(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self { ... }
}
Expand description

Constructors for types that are composed of two Lp components.

Provided Methods§

source

fn points(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self

Returns a new value containing the x and y components converted into Lp using Lp::points/Lp::points_f.

source

fn cm(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self

Returns a new value containing the x and y components converted into Lp using Lp::cm/Lp::cm_f.

source

fn mm(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self

Returns a new value containing the x and y components converted into Lp using Lp::mm/Lp::mm_f.

source

fn inches(x: impl Into<FloatOrInt>, y: impl Into<FloatOrInt>) -> Self

Returns a new value containing the x and y components converted into Lp using Lp::inches/Lp::inches_f.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Lp2D for Twhere T: FromComponents<Lp>,