MCPcopy Create free account
hub / github.com/Lymia/enumset / from_u64_slice

Method from_u64_slice

enumset/src/repr/array.rs:233–238  ·  view source on GitHub ↗
(v: &[u64])

Source from the content-addressed store, hash-verified

231 }
232
233 fn from_u64_slice(v: &[u64]) -> Self {
234 let mut new = ArrayRepr([0; N]);
235 let copy_len = if N < v.len() { N } else { v.len() };
236 new.0[..copy_len].copy_from_slice(&v[..copy_len]);
237 new
238 }
239 fn try_from_u64_slice(v: &[u64]) -> Option<Self> {
240 if v.len() > N {
241 for i in N..v.len() {

Callers

nothing calls this directly

Calls 1

ArrayReprClass · 0.85

Tested by

no test coverage detected