Expand description
Timecode comparison helpers.
The Timecode struct already implements PartialOrd and Ord based on
total frame count (see lib.rs). This module adds named helper methods
that read more naturally in production code and provides distance and
clamping utilities.
Traits§
- Timecode
Compare - Extension trait adding named comparison helpers to
Timecode.
Functions§
- earlier
- Return the frame with the earlier position.
- is_
earlier_ than - Return
trueifacomes beforeb. - is_
later_ than - Return
trueifacomes afterb. - is_
same_ frame - Return
trueifaandbrepresent the same frame. - later
- Return the frame with the later position.