pub struct TrackInfo { /* private fields */ }Expand description
Represents parsed track info.
Implementations§
Source§impl TrackInfo
impl TrackInfo
Sourcepub fn get(&self, tag: TrackInfoTag) -> Option<&EntryValue>
pub fn get(&self, tag: TrackInfoTag) -> Option<&EntryValue>
Get value for tag. Different variants of TrackInfoTag may have
different value types, please refer to TrackInfoTag.
Sourcepub fn gps_info(&self) -> Option<&GPSInfo>
pub fn gps_info(&self) -> Option<&GPSInfo>
Parsed GPS info, if GpsIso6709 was present in the source. Mirrors
Exif::gps_info.
Sourcepub fn iter(&self) -> impl Iterator<Item = (TrackInfoTag, &EntryValue)>
pub fn iter(&self) -> impl Iterator<Item = (TrackInfoTag, &EntryValue)>
Iterate over (tag, value) pairs. The tag is yielded by value
because TrackInfoTag is Copy. The parsed GPSInfo is not
included here — get it via TrackInfo::gps_info.
Sourcepub fn has_embedded_media(&self) -> bool
👎Deprecated since 3.1.0: no concrete use case in v3.x; always returned false in 3.0.0. Kept as a no-op for source-compat; will be removed if no use case emerges by v4.
pub fn has_embedded_media(&self) -> bool
no concrete use case in v3.x; always returned false in 3.0.0. Kept as a no-op for source-compat; will be removed if no use case emerges by v4.
Deprecated: 3.0.0 reserved this for “track source also embeds a
secondary track” cases (e.g. .mka audio container that also
carries video) but the detection was never wired up — the method
always returned false. v3.1 drops the symmetric counterpart on
the image side (Exif::has_embedded_track)
to a content-detected flag, but the track-source variant stays
without a real use case, so this remains a no-op for source
compatibility only. May be re-introduced if a concrete use case
emerges.