MCPcopy Create free account
hub / github.com/encounter/objdiff / required_len

Method required_len

objdiff-core/src/arch/mod.rs:266–277  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

264 }
265
266 fn required_len(&self) -> Option<usize> {
267 match self {
268 DataType::Int8 => Some(1),
269 DataType::Int16 => Some(2),
270 DataType::Int32 => Some(4),
271 DataType::Int64 => Some(8),
272 DataType::Float => Some(4),
273 DataType::Double => Some(8),
274 DataType::Bytes => None,
275 DataType::String => None,
276 }
277 }
278}
279
280impl dyn Arch {

Callers 1

display_literalsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected