Lines Matching refs:elems
28 elems: Box<[u8]>, field
40 Ok(Self { elems: b, len: size }) in new()
47 if len <= self.elems.len() { in reduce_len()
55 for i in 0..self.elems.len() { in drop()
56 unsafe { write_volatile(self.elems.as_mut_ptr().add(i), 0) }; in drop()
58 if !self.elems.is_empty() { in drop()
60 unsafe { munlock(self.elems.as_ptr() as *const std::ffi::c_void, self.elems.len()) } in drop()
72 &self.elems[0..self.len] in deref()
78 &mut self.elems[0..self.len] in deref_mut()
84 if self.elems.is_empty() { in fmt()
117 Ok(Self { elems: b, len }) in try_from()