Make doc comment less scary.
This commit is contained in:
parent
9461cd84f2
commit
45856ee846
|
@ -82,8 +82,9 @@ pub trait One: Sized + Mul<Self, Output = Self> {
|
||||||
|
|
||||||
/// Returns `true` if `self` is equal to the multiplicative identity.
|
/// Returns `true` if `self` is equal to the multiplicative identity.
|
||||||
///
|
///
|
||||||
/// Compatibility note: this method will be a requirement to implement in the future; new
|
/// For performance reasons, it's best to implement this manually.
|
||||||
/// implementors should provide it for future-compatibility.
|
/// After a semver bump, this method will be required, and the
|
||||||
|
/// `where Self: PartialEq` bound will be removed.
|
||||||
fn is_one(&self) -> bool where Self: PartialEq {
|
fn is_one(&self) -> bool where Self: PartialEq {
|
||||||
*self == Self::one()
|
*self == Self::one()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue