veloren_voxygen/render/
bound.rs

1pub struct Bound<T> {
2    pub(super) bind_group: wgpu::BindGroup,
3    pub(super) with: T,
4}
5
6impl<T> std::ops::Deref for Bound<T> {
7    type Target = T;
8
9    fn deref(&self) -> &Self::Target { &self.with }
10}
11
12impl<T> std::ops::DerefMut for Bound<T> {
13    fn deref_mut(&mut self) -> &mut Self::Target { &mut self.with }
14}