#[repr(packed)]
pub struct FATLongDirEnt { ord: u8, name1: [u16; 5], attr: FATDiskInodeType, ldir_type: u8, chk_sum: u8, name2: [u16; 6], fst_clus_lo: u16, name3: [u16; 2], }
Expand description

On-disk data structure for partition information.

Fields

ord: u8

The order of this entry in the sequence of long dir entries. It is associated with the short dir entry at the end of the long dir set, and masked with 0x40 (LAST_LONG_ENTRY), which indicates that the entry is the last long dir entry in a set of long dir entries. All valid sets of long dir entries must begin with an entry having this mask.

name1: [u16; 5]

Characters 1-5 of the long-name sub-component in this dir entry.

attr: FATDiskInodeType

Attributes - must be ATTR_LONG_NAME

ldir_type: u8

If zero, indicates a directory entry that is a sub-component of a long name.

NOTE

Other values reserved for future extensions. Non-zero implies other dirent types.

chk_sum: u8

Checksum of name in the short dir entry at the end of the long dir set.

name2: [u16; 6]

Characters 6-11 of the long-name sub-component in this dir entry.

fst_clus_lo: u16

Must be ZERO. This is an artifact of the FAT “first cluster”, and must be zero for compatibility with existing disk utilities. It’s meaningless in the context of a long dir entry.

name3: [u16; 2]

Characters 12-13 of the long-name sub-component in this dir entry

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.