Struct composable_allocators::freelist::RtParams
source · pub struct RtParams<Limit: LimitParam> { /* private fields */ }Implementations§
source§impl<Limit: LimitParam> RtParams<Limit>
impl<Limit: LimitParam> RtParams<Limit>
sourcepub const unsafe fn new_unchecked(
layout: Layout,
tolerance: Layout,
limit: Limit
) -> Self
pub const unsafe fn new_unchecked( layout: Layout, tolerance: Layout, limit: Limit ) -> Self
§Safety
Arguments should satisfy
tolerance.size() <= layout.size() && tolerance.align() <= layout.align(),
and
layout.size() >= MIN_LAYOUT_SIZE && layout.align() >= MIN_LAYOUT_ALIGN.
pub const fn new(layout: Layout, tolerance: Layout, limit: Limit) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<Limit> Freeze for RtParams<Limit>where
Limit: Freeze,
impl<Limit> RefUnwindSafe for RtParams<Limit>where
Limit: RefUnwindSafe,
impl<Limit> Send for RtParams<Limit>where
Limit: Send,
impl<Limit> Sync for RtParams<Limit>where
Limit: Sync,
impl<Limit> Unpin for RtParams<Limit>where
Limit: Unpin,
impl<Limit> UnwindSafe for RtParams<Limit>where
Limit: UnwindSafe,
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