pub struct Clamped<T>(pub T);
A wrapper type around slices and vectors for binding the
array in JS.
If you need to invoke a JS API which must take
then you can define it as taking one of these types:
All of these types will show up as
Uint8ClampedArray in JS and will have
different forms of ownership in Rust.
Auto Trait Implementations§
Returns the argument unchanged.