Skip to main content

seq_len

Function seq_len 

Source
pub fn seq_len(root: &Value, path: &[Seg]) -> Option<usize>
Expand description

The length of the sequence at path. None when the path doesn’t resolve or names something that isn’t a sequence — the two cases a caller sizing an append index or a reorder permutation has to tell apart from an empty list.