//! Traits for abstracting away frame allocation and deallocation.
usecrate::addr::Frame;/// A trait for types that can allocate a frame of memory.
pubtraitFrameAllocator{/// Allocate a frame of the appropriate size and return it if possible.
fnalloc(&mutself)->Option<Frame>;}/// A trait for types that can deallocate a frame of memory.
pubtraitFrameDeallocator{/// Deallocate the given frame of memory.
fndealloc(&mutself, frame: Frame);}