Skip to content
API REFERENCEUsage guides →

cellpack::scans::Element ​

trait

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 ​

2 of 2 members

  • WIDTHBytes per element.
  • from_leReads one element from WIDTH little-endian bytes.

Methods and associated constants ​

WIDTH ​

const WIDTH: usize

Bytes per element.

from_le ​

fn from_le(b: &[u8]) -> Self

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.

Definition