Skip to content
API REFERENCEUsage guides →

cellpack::loader::allowed ​

fn

Module contract · All interfaces

At a glance ​

pub fn allowed(s: Dtype, t: Dtype) -> bool

Whether values stored as s may be output as t: the same type, lossless widening, same-width signed to unsigned (negatives are not checked), signed to wider unsigned, and any integer to a float.

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