pub struct Block {
pub contents: [u8; 512],
}
Expand description
A standard 512 byte block (also known as a sector).
IBM PC formatted 5.25“ and 3.5“ floppy disks, IDE/SATA Hard Drives up to about 2 TiB, and almost all SD/MMC cards have 512 byte blocks.
This library does not support devices with a block size other than 512 bytes.
Fields§
§contents: [u8; 512]
The 512 bytes in this block (or sector).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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