We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
IsZero
1 parent b94a29a commit 50e9f2eCopy full SHA for 50e9f2e
library/alloc/src/vec/is_zero.rs
@@ -4,7 +4,8 @@ use crate::boxed::Box;
4
5
#[rustc_specialization_trait]
6
pub(super) unsafe trait IsZero {
7
- /// Whether this value's representation is all zeros
+ /// Whether this value's representation is all zeros,
8
+ /// or can be represented with all zeroes.
9
fn is_zero(&self) -> bool;
10
}
11
0 commit comments