Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
40
impl 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
50
impl fmt::Display for QuoteStyle {
Callers
3
fmt
Method · 0.80
eq
Method · 0.80
parse
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected