MCPcopy Create free account
hub / github.com/PerroEngine/Perro / with

Method with

perro_source/core/perro_structs/src/structs/bit_mask.rs:162–170  ·  view source on GitHub ↗
(layers: [u8; N])

Source from the content-addressed store, hash-verified

160
161 #[inline]
162 pub const fn with<const N: usize>(layers: [u8; N]) -> Self {
163 let mut bits = 0u32;
164 let mut i = 0usize;
165 while i < N {
166 bits |= Self::layer(layers[i]).bits();
167 i += 1;
168 }
169 Self(bits)
170 }
171
172 #[inline]
173 pub fn from_layers<I, L>(layers: I) -> Self

Callers 12

current_overridesFunction · 0.80
set_dlc_self_contextFunction · 0.80
push_dlc_self_contextFunction · 0.80
dropMethod · 0.80
resolve_pathFunction · 0.80
decode_gltf_query_meshFunction · 0.80
internal_fixed_updateFunction · 0.80
solve_fabrikFunction · 0.80
internal_fixed_updateFunction · 0.80
solve_fabrikFunction · 0.80
DocsIndexPageFunction · 0.80

Calls 1

bitsMethod · 0.45

Tested by

no test coverage detected