pub struct File { /* private fields */ }Expand description
An interleaved XA file on the disc.
Implementations§
Source§impl File
impl File
Sourcepub const fn new(
lba: u32,
sector_count: u32,
number: u8,
speed: DriveSpeed,
) -> Self
pub const fn new( lba: u32, sector_count: u32, number: u8, speed: DriveSpeed, ) -> Self
A file at lba (relative to this program’s disc image, see
crate::disc_base) of sector_count sectors, including the end
guard mkisopsx keeps. number and speed come from the encoder’s
manifest.
Sourcepub const fn from_directory_entry(
lba: u32,
size_bytes: u32,
number: u8,
speed: DriveSpeed,
) -> Self
pub const fn from_directory_entry( lba: u32, size_bytes: u32, number: u8, speed: DriveSpeed, ) -> Self
A file from its ISO 9660 directory record: first LBA and size in bytes (a whole number of 2048-byte sectors for an XA file).
Sourcepub const fn span_sector_count(self) -> u32
pub const fn span_sector_count(self) -> u32
Sectors the songs span, without the end guard.
Trait Implementations§
impl Copy for File
impl Eq for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)