Macro glamour::point

source ·
macro_rules! point {
    ($x:expr, $y:expr) => { ... };
    ($x:expr, $y:expr, $z:expr) => { ... };
    ($x:expr, $y:expr, $z:expr, $w:expr) => { ... };
    [$x:expr, $y:expr] => { ... };
    [$x:expr, $y:expr, $z:expr] => { ... };
    [$x:expr, $y:expr, $z:expr, $w:expr] => { ... };
    ([$splat:expr; 2]) => { ... };
    ([$splat:expr; 3]) => { ... };
    ([$splat:expr; 4]) => { ... };
}
Expand description

Construct a Point2, Point3, or Point4 depending on the number of arguments. Usable in const contexts.