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 get_gps_info(&self) -> Option<&GPSInfo>
pub fn get_gps_info(&self) -> Option<&GPSInfo>
Get parsed GPSInfo
.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&TrackInfoTag, &EntryValue)>
pub fn iter(&self) -> impl Iterator<Item = (&TrackInfoTag, &EntryValue)>
Get an iterator for (&TrackInfoTag, &EntryValue)
. The parsed
GPSInfo
is not included.
Trait Implementations§
Source§impl From<BTreeMap<TrackInfoTag, EntryValue>> for TrackInfo
impl From<BTreeMap<TrackInfoTag, EntryValue>> for TrackInfo
Source§fn from(entries: BTreeMap<TrackInfoTag, EntryValue>) -> Self
fn from(entries: BTreeMap<TrackInfoTag, EntryValue>) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for TrackInfo
impl IntoIterator for TrackInfo
Source§type Item = (TrackInfoTag, EntryValue)
type Item = (TrackInfoTag, EntryValue)
The type of the elements being iterated over.
Source§type IntoIter = IntoIter<TrackInfoTag, EntryValue>
type IntoIter = IntoIter<TrackInfoTag, EntryValue>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl Freeze for TrackInfo
impl RefUnwindSafe for TrackInfo
impl Send for TrackInfo
impl Sync for TrackInfo
impl Unpin for TrackInfo
impl UnwindSafe for TrackInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more