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

Method is_empty

atomic-canonical/src/node.rs:137–139  ·  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

135 /// True when no criteria are referenced. Drives `skip_serializing_if`, so an
136 /// empty list is omitted exactly as it was under the plain `Vec`.
137 pub fn is_empty(&self) -> bool {
138 self.as_slice().is_empty()
139 }
140}
141
142impl 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