Struct bump_scope::BumpScopeGuardRoot
source · pub struct BumpScopeGuardRoot<'b, A: Allocator + Clone, const MIN_ALIGN: usize = 1, const UP: bool = true>where
MinimumAlignment<MIN_ALIGN>: SupportedMinimumAlignment,{ /* private fields */ }Expand description
Returned from Bump::scope_guard.
This fulfills the same purpose as BumpScopeGuard, but it does not need to store
the address which the bump pointer needs to be reset to. It simply resets the bump pointer to the very start.
Implementations§
source§impl<'a, A: Allocator + Clone, const MIN_ALIGN: usize, const UP: bool> BumpScopeGuardRoot<'a, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: SupportedMinimumAlignment,
impl<'a, A: Allocator + Clone, const MIN_ALIGN: usize, const UP: bool> BumpScopeGuardRoot<'a, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: SupportedMinimumAlignment,
Trait Implementations§
source§impl<'b, A: Allocator + Clone, const MIN_ALIGN: usize, const UP: bool> Debug for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: SupportedMinimumAlignment,
impl<'b, A: Allocator + Clone, const MIN_ALIGN: usize, const UP: bool> Debug for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: SupportedMinimumAlignment,
source§impl<'a, A: Allocator + Clone, const MIN_ALIGN: usize, const UP: bool> Drop for BumpScopeGuardRoot<'a, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: SupportedMinimumAlignment,
impl<'a, A: Allocator + Clone, const MIN_ALIGN: usize, const UP: bool> Drop for BumpScopeGuardRoot<'a, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: SupportedMinimumAlignment,
Auto Trait Implementations§
impl<'b, A, const MIN_ALIGN: usize, const UP: bool> Freeze for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: Sealed,
impl<'b, A, const MIN_ALIGN: usize = 1, const UP: bool = true> !RefUnwindSafe for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>
impl<'b, A, const MIN_ALIGN: usize = 1, const UP: bool = true> !Send for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>
impl<'b, A, const MIN_ALIGN: usize = 1, const UP: bool = true> !Sync for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>
impl<'b, A, const MIN_ALIGN: usize, const UP: bool> Unpin for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>where
MinimumAlignment<MIN_ALIGN>: Sealed,
impl<'b, A, const MIN_ALIGN: usize = 1, const UP: bool = true> !UnwindSafe for BumpScopeGuardRoot<'b, A, MIN_ALIGN, UP>
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