MCPcopy Create free account
hub / github.com/csskit/csskit / value

Method value

crates/css_lexer/src/token.rs:798–801  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

796 /// Asserts: the `kind()` is [Kind::Dimension] or [Kind::Number].
797 #[inline]
798 pub fn value(&self) -> f32 {
799 debug_assert!(matches!(self.kind(), Kind::Number | Kind::Dimension));
800 f32::from_bits(self.1)
801 }
802
803 /// Returns the [Whitespace].
804 ///

Callers 11

extract_atom_stringFunction · 0.45
parseMethod · 0.45
can_compact_numberMethod · 0.45
fmt_compacted_numberMethod · 0.45
fmt_expanded_numberMethod · 0.45
needs_separator_forMethod · 0.45
fmtMethod · 0.45
convert_tokenFunction · 0.45
matchesMethod · 0.45
parseMethod · 0.45

Calls

no outgoing calls

Tested by 1

convert_tokenFunction · 0.36