[−][src]Struct dynvec::region::global::Global
A region that allocates items using the global allocator.
Trait Implementations
impl<H> Default for Global<H>
[src]
impl<H> Region<H> for Global<H>
[src]
type Pointers = IntoIter<*mut u8>
An iterator over all the allocations of this region.
pub fn allocate(&mut self, layout: Layout, header: H) -> Result<*mut u8, H>
[src]
pub fn deallocate(&mut self, ptr: *mut u8) -> Option<H>
[src]
pub fn has_allocated(&self, ptr: *mut u8) -> bool
[src]
pub fn count(&self) -> usize
[src]
pub fn allocations(&self) -> Self::Pointers
[src]
pub fn deallocate_all(&mut self) -> DeallocateAll<'_, H, Self>ⓘNotable traits for DeallocateAll<'a, H, R>
impl<'a, H, R: Region<H>> Iterator for DeallocateAll<'a, H, R> type Item = (*mut u8, H);
where
Self: Sized,
[src]
Notable traits for DeallocateAll<'a, H, R>
impl<'a, H, R: Region<H>> Iterator for DeallocateAll<'a, H, R> type Item = (*mut u8, H);
Self: Sized,
Auto Trait Implementations
impl<H> RefUnwindSafe for Global<H> where
H: RefUnwindSafe,
[src]
H: RefUnwindSafe,
impl<H> !Send for Global<H>
[src]
impl<H> !Sync for Global<H>
[src]
impl<H> Unpin for Global<H> where
H: Unpin,
[src]
H: Unpin,
impl<H> UnwindSafe for Global<H> where
H: UnwindSafe,
[src]
H: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,