Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SoftbearStudios/bitcode
/ encode
Method
encode
src/serde/variant.rs:14–16 ·
view source on GitHub ↗
(&mut self, v: &u8)
Source
from the content-addressed store, hash-verified
12
impl Encoder<u8> for VariantEncoder {
13
#[inline(always)]
14
fn encode(&mut self, v: &u8) {
15
unsafe { self.data.push_unchecked(*v) };
16
}
17
}
18
19
impl Buffer for VariantEncoder {
Callers
3
serialize_enum
Method · 0.45
serialize_seq
Method · 0.45
serialize_map
Method · 0.45
Calls
1
push_unchecked
Method · 0.80
Tested by
no test coverage detected