Closed nical closed 4 years ago
@bors-servo r=kvark
:pushpin: Commit 630dfca has been approved by kvark
:hourglass: Testing commit 630dfca2e7bb266f03127ef167a11db8bb01c9f8 with merge 811605a1ee5f5a1016d4b7746f75b0bc2b1e1934...
:sunny: Test successful - checks-travis Approved by: kvark Pushing 811605a1ee5f5a1016d4b7746f75b0bc2b1e1934 to master...
ONE
was only implemented forf32
(I think nothing else in euclid has a functionality implemented for a single type) whereasidentity
is implemented for all types implementingnum::One
. On the other handidentity
can't be aconst fn
because these don't support trait bounds other thanSized
currently. Alsoidentity
is consistent with other transform types in euclid.