servo / euclid

Geometry primitives (basic linear algebra) for Rust
Other
458 stars 102 forks source link

Propagate formatting parameters to each components for more types #421

Closed nical closed 4 years ago

nical commented 4 years ago

Following up on #419, ensure the Debug and Display implementations propagate formatting parameters for more of euclid's types.

This allows people to control, for example, the number of digits in the formatting syntax like println!("{:.3?}", rect);.

nical commented 4 years ago

r? @kvark

nical commented 4 years ago

@bors-servo r=kvark

bors-servo commented 4 years ago

:pushpin: Commit a61891b has been approved by kvark

bors-servo commented 4 years ago

:hourglass: Testing commit a61891b74189db66dcff932261939372d5aee916 with merge 0051e76f52aa64389f84285538ff2db4776464b3...

bors-servo commented 4 years ago

:sunny: Test successful - checks-travis Approved by: kvark Pushing 0051e76f52aa64389f84285538ff2db4776464b3 to master...

nox commented 4 years ago

Honestly I would just not implement Display.