pub struct PrecomputedLayout<'a, Backend, Layout> { /* private fields */ }Expand description
A layout for allocations.
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
This is a pre-calculated layout suitable for making series of similar allocations
adopted for particular ShmProviderImplementations§
Source§impl<'a, Backend, Layout> PrecomputedLayout<'a, Backend, Layout>where
Backend: ShmProviderBackend,
impl<'a, Backend, Layout> PrecomputedLayout<'a, Backend, Layout>where
Backend: ShmProviderBackend,
Sourcepub fn alloc<'b>(&'b self) -> PrecomputedAllocBuilder<'b, 'a, Backend, Layout>
pub fn alloc<'b>(&'b self) -> PrecomputedAllocBuilder<'b, 'a, Backend, Layout>
Allocate the new buffer with this layout
This API has been marked as unstable: it works as advertised, but it may be changed in a future release.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Backend, Layout> Freeze for PrecomputedLayout<'a, Backend, Layout>
impl<'a, Backend, Layout> RefUnwindSafe for PrecomputedLayout<'a, Backend, Layout>where
Layout: RefUnwindSafe,
Backend: RefUnwindSafe,
impl<'a, Backend, Layout> Send for PrecomputedLayout<'a, Backend, Layout>
impl<'a, Backend, Layout> Sync for PrecomputedLayout<'a, Backend, Layout>
impl<'a, Backend, Layout> Unpin for PrecomputedLayout<'a, Backend, Layout>where
Layout: Unpin,
impl<'a, Backend, Layout> UnwindSafe for PrecomputedLayout<'a, Backend, Layout>where
Layout: UnwindSafe,
Backend: RefUnwindSafe,
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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