Appearance
cellpack::scans::Element
Module contract · All interfaces
At a glance
pub trait Element:
Copy
+ Sealed
+ 'static {
const WIDTH: usize;
// Required method
fn from_le(b: &[u8]) -> Self;
}Mapping decoded rows onto a caller column panel, and the element types its conversions take. Numeric element types values can be read as or converted to.
Member index
Methods and associated constants
WIDTH
Bytes per element.
from_le
Reads one element from WIDTH little-endian bytes.
Contract reference
See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.