Skip to main content

impl_altinteger_slice

Macro impl_altinteger_slice 

Source
macro_rules! impl_altinteger_slice {
    ($ty:ty) => { ... };
}
Expand description

AltIntegerData for any container that derefs to [i32].

s binds the underlying &[i32] uniformly across Vec / Box<[T]> / &[T] / Cow, sidestepping the self.len() ambiguity between AltrepLen::len and the inherent slice/Vec len.