pub struct RegionHandle<'a> {
pub id: RegionId,
pub phantom: PhantomData<&'a ()>,
}Expand description
A lifetime-tied handle to a specific region.
The 'a lifetime ensures the handle cannot outlive the allocator
that owns the underlying Region.
Fields§
§id: RegionIdThe region this handle refers to.
phantom: PhantomData<&'a ()>Ties the handle lifetime to the allocator borrow.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for RegionHandle<'a>
impl<'a> Clone for RegionHandle<'a>
Source§fn clone(&self) -> RegionHandle<'a>
fn clone(&self) -> RegionHandle<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RegionHandle<'a>
impl<'a> Debug for RegionHandle<'a>
Source§impl<'a> Display for RegionHandle<'a>
impl<'a> Display for RegionHandle<'a>
Source§impl<'a> PartialEq for RegionHandle<'a>
impl<'a> PartialEq for RegionHandle<'a>
impl<'a> Copy for RegionHandle<'a>
impl<'a> Eq for RegionHandle<'a>
impl<'a> StructuralPartialEq for RegionHandle<'a>
Auto Trait Implementations§
impl<'a> Freeze for RegionHandle<'a>
impl<'a> RefUnwindSafe for RegionHandle<'a>
impl<'a> Send for RegionHandle<'a>
impl<'a> Sync for RegionHandle<'a>
impl<'a> Unpin for RegionHandle<'a>
impl<'a> UnsafeUnpin for RegionHandle<'a>
impl<'a> UnwindSafe for RegionHandle<'a>
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