pub struct FakeFrameAllocator;
Expand description
A FrameAllocator
that can’t actually allocate or free frames. Useful if you need to pass a FrameAllocator
to something for testing, but it’ll never actually try to allocate.
Trait Implementations§
Source§impl<S> FrameAllocator<S> for FakeFrameAllocatorwhere
S: FrameSize,
impl<S> FrameAllocator<S> for FakeFrameAllocatorwhere
S: FrameSize,
Auto Trait Implementations§
impl Freeze for FakeFrameAllocator
impl RefUnwindSafe for FakeFrameAllocator
impl Send for FakeFrameAllocator
impl Sync for FakeFrameAllocator
impl Unpin for FakeFrameAllocator
impl UnwindSafe for FakeFrameAllocator
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