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

Method as_char

crates/css_lexer/src/quote_style.rs:41–47  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

39
40impl QuoteStyle {
41 const fn as_char(&self) -> Option<char> {
42 match self {
43 Self::Single => Some('\''),
44 Self::Double => Some('"'),
45 Self::None => None,
46 }
47 }
48}
49
50impl fmt::Display for QuoteStyle {

Callers 3

fmtMethod · 0.80
eqMethod · 0.80
parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected