Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
62
impl 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
72
impl PartialEq for Encoding {
Callers
2
test_inline_encoding
Function · 0.45
test_owned_encoding
Function · 0.45
Calls
3
from_static_str
Function · 0.85
from_str
Function · 0.85
as_str
Method · 0.80
Tested by
2
test_inline_encoding
Function · 0.36
test_owned_encoding
Function · 0.36