pub struct Bitmap {
start_block: usize,
blocks: usize,
}Expand description
位示图
用于管理块设备某一范围内的空闲块
位示图的每一位对应一个块,0 表示空闲,1 表示已分配
Fields§
§start_block: usize§blocks: usizeImplementations§
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnwindSafe for Bitmap
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