is_matching_time

Function is_matching_time 

Source
pub fn is_matching_time(value: &str) -> bool
Expand description

Returns whether the CSS value has the <time> type.

ยงExample

use encre_css::utils::value_matchers::is_matching_time;
assert!(is_matching_time("0.5s"));
assert!(is_matching_time("10ms"));