pub struct Geometry { /* private fields */ }
Expand description
A Geometry
specifies the track and sector layout of a disk image, and
also whether it has an error table appended or not.
Implementations§
Source§impl Geometry
impl Geometry
Sourcepub fn find_by_size<'a>(
size: usize,
geometries: &'a [&'static Geometry],
) -> Option<&'a Geometry>
pub fn find_by_size<'a>( size: usize, geometries: &'a [&'static Geometry], ) -> Option<&'a Geometry>
Given a disk image file size, return the first matching geometry.
Sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Return the total number of bytes used to represent a disk image in this geometry.
Sourcepub fn error_table_offset(&self) -> Option<usize>
pub fn error_table_offset(&self) -> Option<usize>
Return the offset of the error table, if one is present in this geometry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnwindSafe for Geometry
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