Module webrender::util

source ·


  • A typesafe helper that separates new value construction from vector growing, allowing LLVM to ideally construct the element in place.
  • Record the size of a data structure to preallocate a similar size at the next frame and avoid growing it too many time.
  • Arc wrapper to support measurement via MallocSizeOf.
  • This is inspired by the weak-table crate. It holds a Vec of weak pointers that are garbage collected as the Vec


  • An enum that tries to avoid expensive transformation matrix calculations when possible when dealing with non-perspective axis-aligned transformations.
  • An entry into a vector, similar to std::collections::hash_map::Entry.




Type Aliases