Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csskit/csskit
/ as_seconds
Method
as_seconds
crates/css_ast/src/units/time.rs:23–28 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
21
22
impl Time {
23
pub fn as_seconds(&self) -> f32 {
24
match self {
25
Self::Ms(f) => Into::<f32>::into(*f) / 1000.0,
26
Self::S(f) => (*f).into(),
27
}
28
}
29
}
30
31
impl From<Time> for f32 {
Callers
1
visit_time
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected