pub enum Sector {
Num(usize),
Addr((usize, Vec<u8>)),
}Expand description
Wraps either a standard sector index or an explicit address.
If the index is used, it will in general be combined with ZoneFormat and SectorHood to produce
the actual sector address. If the explicit address is used, there are no transformations.
Variants§
Num(usize)
standard index used by a file system, subject to various transformations
Addr((usize, Vec<u8>))
(index,address), the address is the explicit sector address to seek without transformation, the index may be used to determine other sector properties in the usual way
Implementations§
Trait Implementations§
impl StructuralPartialEq for Sector
Auto Trait Implementations§
impl Freeze for Sector
impl RefUnwindSafe for Sector
impl Send for Sector
impl Sync for Sector
impl Unpin for Sector
impl UnwindSafe for Sector
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