Crate rendy_util

Source
Expand description

Crate that contains utility modules used by other rendy crates

Modules§

  • Types shared across rendy

Macros§

Structs§

Functions§

  • Cast cow of some arbitrary type into cow of bytes. Can lead to UB if allocator changes. Use with caution. TODO: Replace with something safer.
  • Cast slice of some arbitrary type into slice of bytes.
  • Cast vec of some arbitrary type into vec of bytes. Can lead to UB if allocator changes. Use with caution. TODO: Replace with something safer.
  • Casts identical types. Useful in generic environment where caller knows that two types are the same but Rust is not convinced.