From: Kostya Shishkov Date: Wed, 28 Jan 2026 17:54:25 +0000 (+0100) Subject: nihav_core/formats: add channels iterator for NAChannelMap X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=bd8c7fccba292e902755c6cf13202d08c6740f05;p=nihav.git nihav_core/formats: add channels iterator for NAChannelMap --- diff --git a/nihav-core/src/formats.rs b/nihav-core/src/formats.rs index 4d6b906..722bd18 100644 --- a/nihav-core/src/formats.rs +++ b/nihav-core/src/formats.rs @@ -305,6 +305,8 @@ impl NAChannelMap { } cm } + /// Returns an iterator over channels. + pub fn iter(&self) -> std::slice::Iter<'_, NAChannelType> { self.ids.iter() } } impl fmt::Display for NAChannelMap {