Change `#[extend]` API
Closed this issue · 1 comments
AldaronLau commented
I think this is better
/// Doc comment for trait
#[extend(core::time::Duration)]
pub trait DurationExt {
/// Returns the total number of whole centiseconds contained by this Duration.
fn as_centis(&self) -> u128 {
self.as_millis() / 10
}
}
AldaronLau commented
Implemented.