We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Minute
1 parent 2a9b189 commit 8b48680Copy full SHA for 8b48680
src/utils/time.rs
@@ -264,7 +264,16 @@ impl TimeRange {
264
}
265
266
267
-/// Describes a minute block
+/// Represents a minute value (0-59) and provides methods for converting it to a slot range.
268
+///
269
+/// # Examples
270
271
+/// ```
272
+/// use crate::utils::time::Minute;
273
274
+/// let minute = Minute::try_from(15).unwrap();
275
+/// assert_eq!(minute.to_slot(10), "10-19");
276
277
#[derive(Debug, Clone, Copy)]
278
pub struct Minute {
279
block: u32,
0 commit comments