Skip to main content

Module compare

Module compare 

Source
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§

TimecodeCompare
Extension trait adding named comparison helpers to Timecode.

Functions§

earlier
Return the frame with the earlier position.
is_earlier_than
Return true if a comes before b.
is_later_than
Return true if a comes after b.
is_same_frame
Return true if a and b represent the same frame.
later
Return the frame with the later position.