MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / IntegerList

Class IntegerList

option_parser/src/lib.rs:356–356  ·  view source on GitHub ↗

A list of integers parsed from a bracket-enclosed, comma-separated string. Ranges are supported with `-`: `"[0,2-4,6]"` produces `[0, 2, 3, 4, 6]`.

Source from the content-addressed store, hash-verified

354///
355/// Ranges are supported with `-`: `"[0,2-4,6]"` produces `[0, 2, 3, 4, 6]`.
356pub struct IntegerList(pub Vec<u64>);
357
358impl Display for IntegerList {
359 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {

Callers 3

from_strMethod · 0.85
test_parse_vhost_userFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_parse_vhost_userFunction · 0.68