pub trait Extend<FROM> {
// Required methods
fn extend(v: FROM) -> Self;
fn narrow(self) -> FROM;
}Expand description
Zero-extend a narrower FROM value into a wider Self, and narrow back.
Implemented for both vectors and masks. Most users should go through
GenericVector::extend / GenericVector::narrow.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".