MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / is_empty

Method is_empty

atomic-canonical/src/node.rs:186–188  ·  view source on GitHub ↗

True when no criteria are referenced. Drives `skip_serializing_if`, so an empty list is omitted exactly as it was under the plain `Vec`.

(&self)

Source from the content-addressed store, hash-verified

184 /// True when no criteria are referenced. Drives `skip_serializing_if`, so an
185 /// empty list is omitted exactly as it was under the plain `Vec`.
186 pub fn is_empty(&self) -> bool {
187 self.as_slice().is_empty()
188 }
189}
190
191impl Default for Satisfies {

Callers 15

parseFunction · 0.45
parse_leafFunction · 0.45
tokenizeFunction · 0.45
fromMethod · 0.45
validate_intentFunction · 0.45
validate_memoryFunction · 0.45
render_cliFunction · 0.45
render_memory_cliFunction · 0.45
container_open_nameFunction · 0.45
opt_strFunction · 0.45
str_arrayFunction · 0.45
projectFunction · 0.45

Calls 1

as_sliceMethod · 0.45

Tested by

no test coverage detected