MCPcopy Create free account
hub / github.com/evilsocket/cake / is_stack_first

Method is_stack_first

cake-core/src/models/luxtts/config.rs:115–118  ·  view source on GitHub ↗

Check if a flat layer index is the first layer of its stack.

(&self, flat_idx: usize)

Source from the content-addressed store, hash-verified

113
114 /// Check if a flat layer index is the first layer of its stack.
115 pub fn is_stack_first(&self, flat_idx: usize) -> bool {
116 let (_, layer_in_stack) = self.flat_to_stack(flat_idx);
117 layer_in_stack == 0
118 }
119
120 /// Check if a flat layer index is the last layer of its stack.
121 pub fn is_stack_last(&self, flat_idx: usize) -> bool {

Callers

nothing calls this directly

Calls 1

flat_to_stackMethod · 0.80

Tested by

no test coverage detected