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

Method as_ref

crates/css_lexer/src/cow.rs:27–29  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

25
26impl<'a, A: Allocator> AsRef<str> for CowStr<'a, A> {
27 fn as_ref(&self) -> &str {
28 self.as_str()
29 }
30}
31
32impl<'a, A: Allocator> PartialEq<&str> for CowStr<'a, A> {

Callers 15

to_chromashiftMethod · 0.80
to_chromashiftMethod · 0.80
should_skip_visitMethod · 0.80
type_attributesMethod · 0.80
is_all_keywordsMethod · 0.80
generate_definitionMethod · 0.80
to_spanMethod · 0.80

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected