MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / clone

Method clone

src/encode.rs:63–69  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

61
62impl Clone for Encoding {
63 fn clone(&self) -> Encoding {
64 if let Code::Slice(code) = self.code {
65 from_static_str(code)
66 } else {
67 from_str(self.as_str())
68 }
69 }
70}
71
72impl PartialEq for Encoding {

Callers 2

test_inline_encodingFunction · 0.45
test_owned_encodingFunction · 0.45

Calls 3

from_static_strFunction · 0.85
from_strFunction · 0.85
as_strMethod · 0.80

Tested by 2

test_inline_encodingFunction · 0.36
test_owned_encodingFunction · 0.36