pub fn new(frame_allocator: &mut impl FrameAllocator<Size4KiB>) -> Self {
        TwoFrames {
            frames: [
                Some(frame_allocator.allocate_frame().unwrap()),
                Some(frame_allocator.allocate_frame().unwrap()),
            ],
        }
    }
/// Creates a new instance by allocating two physical frames from the given frame allocator.
Creates a new instance by allocating two physical frames from the given frame allocator.
Creates a new instance by allocating two physical frames from the given frame allocator .
pub fn new(frame_allocator: &mut impl FrameAllocator<Size4KiB>) -> Self {
        TwoFrames {
            frames: [
                Some(frame_allocator.allocate_frame().unwrap()),
                Some(frame_allocator.allocate_frame().unwrap()),
            ],
        }
    }
pub fn new ( frame_allocator : & mut impl FrameAllocator < Size4KiB > ) -> Self { TwoFrames { frames : [ Some ( frame_allocator . allocate_frame ( ) . unwrap ( ) ) , Some ( frame_allocator . allocate_frame ( ) . unwrap ( ) ) , ] , } }
Creates a new instance by allocating two physical frames from the given frame allocator.
Creates a new instance by allocating two physical frames from the given frame allocator .
frame_allocator
&mut impl FrameAllocator<Size4KiB>
frame_allocator
&mut impl FrameAllocator<Size4KiB>