Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SSheldon/rust-objc
/ from_static_str
Function
from_static_str
src/encode.rs:87–89 ·
view source on GitHub ↗
(code: &'static str)
Source
from the content-addressed store, hash-verified
85
}
86
87
pub fn from_static_str(code: &'static str) -> Encoding {
88
Encoding { code: Code::Slice(code) }
89
}
90
91
pub fn from_str(code: &str) -> Encoding {
92
if code.len() > CODE_INLINE_CAP {
Callers
1
clone
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected