pub fn count_frames(path: &Path) -> Result<usize, LoadError>Expand description
Count frames without building atom payloads (uses ConFrameIterator::forward_fast
when possible, else ConFrameIterator::forward).
Prefer this over read_all_frames(...).len() when only the frame count is needed.
A rejected frame is LoadError::Parse with that frame’s file line and
0-based index, including when the failure is after the first frame.