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

Method deref

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

Source from the content-addressed store, hash-verified

19impl<'a, A: Allocator> core::ops::Deref for CowStr<'a, A> {
20 type Target = str;
21 fn deref(&self) -> &Self::Target {
22 self.as_str()
23 }
24}
25
26impl<'a, A: Allocator> AsRef<str> for CowStr<'a, A> {

Callers 6

to_variant_nameMethod · 0.45
to_typesMethod · 0.45
is_all_keywordsMethod · 0.45
generate_definitionMethod · 0.45
optimizeMethod · 0.45

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected