#[repr(transparent)]pub struct Block(pub [u8; 512]);
Expand description
Standard block size representation for file system operations.
This type represents a 512-byte block, which is the standard sector size for most storage devices. It’s used throughout the file system for block-aligned operations and buffer management.
§Examples
use file_system::Block_type;
let block = Block_type::default();
assert_eq!(block.0.len(), 512);
Tuple Fields§
§0: [u8; 512]
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