Skip to main content

STXDiskHeader

Struct STXDiskHeader 

Source
pub struct STXDiskHeader<'a> {
    pub disk_id: &'a [u8],
    pub version: u16,
    pub tool_used: u16,
    pub reserved_area_1: &'a [u8],
    pub track_count: u8,
    pub new_format: u8,
    pub reserved_area_2: &'a [u8],
}
Expand description

STXDiskHeader contains information about an Atari ST STX floppy disk image header 16 bytes

Fields§

§disk_id: &'a [u8]

The disk identifier, “RSY\0”

§version: u16

The version of the disk image Usually version 3

§tool_used: u16

A 16-bit integer that indicates the tool used to create the image

§reserved_area_1: &'a [u8]

First reserved area, two reserved bytes

§track_count: u8

The number of tracks on the disk

§new_format: u8

Whether the disk is in the new format

§reserved_area_2: &'a [u8]

Second reserved area, four reserved bytes

Trait Implementations§

Source§

impl<'a> Debug for STXDiskHeader<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for STXDiskHeader<'_>

Format a STXDiskHeader for display

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl SanityCheck for STXDiskHeader<'_>

Perform sanity checks for a disk header For now, these are done post-parsing of the section These are generally less strict than things like magic number identification but are good indicators the data may be corrupted

Source§

fn check(&self) -> bool

Perform a set of data-dependent sanity checks on a structure Returns true if the object passes the checks Return false if the object fails the tests

Auto Trait Implementations§

§

impl<'a> Freeze for STXDiskHeader<'a>

§

impl<'a> RefUnwindSafe for STXDiskHeader<'a>

§

impl<'a> Send for STXDiskHeader<'a>

§

impl<'a> Sync for STXDiskHeader<'a>

§

impl<'a> Unpin for STXDiskHeader<'a>

§

impl<'a> UnsafeUnpin for STXDiskHeader<'a>

§

impl<'a> UnwindSafe for STXDiskHeader<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,