pub struct Group { /* private fields */ }Expand description
A cache group.
Caches that share the same group generally change together.
A cache group can be used to implement certain performance optimizations during rendering, like batching or sharing atlases.
Implementations§
Source§impl Group
impl Group
Sourcepub fn is_singleton(self) -> bool
pub fn is_singleton(self) -> bool
Returns true if the Group can only ever have a
single Cache in it.
This is the default kind of Group assigned when using
Cache::new.
Knowing that a Group will never be shared may be
useful for rendering backends to perform additional
optimizations.
Trait Implementations§
Source§impl Ord for Group
impl Ord for Group
Source§impl PartialOrd for Group
impl PartialOrd for Group
impl Copy for Group
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more