Module buf

Module buf 

Source
Expand description

Two-dimensional buffers, with owned and borrowed variants.

Useful for storing pixel data of any kind, among other things.

Modules§

inner

Structs§

Buf2
A rectangular 2D buffer that owns its elements, backed by a Vec.
MutSlice2
A mutable rectangular view to a region of a Buf2, a Slice2, or in general any &[T] slice of memory.
Slice2
An immutable rectangular view to a region of a Buf2, another Slice2, or in general any &[T] slice of memory. A two-dimensional analog to &[T].

Traits§

AsMutSlice2
A trait for types that can provide a mutable view of their data as a MutSlice2.
AsSlice2
A trait for types that can provide a view of their data as a Slice2.