#[repr(C, packed(1))]pub struct Fat32LFNEntry {
pub sequence: u8,
pub name1: [u16; 5],
pub attributes: u8,
pub entry_type: u8,
pub checksum: u8,
pub name2: [u16; 6],
pub cluster: u16,
pub name3: [u16; 2],
}Expand description
Long File Name (LFN) directory entry
Fields§
§sequence: u8Sequence number (1-based, with 0x40 bit for last entry)
name1: [u16; 5]First 5 characters (10 bytes, UTF-16LE)
attributes: u8Attributes (always 0x0F for LFN)
entry_type: u8Type (always 0 for LFN)
checksum: u8Checksum of corresponding SFN
name2: [u16; 6]Characters 6-11 (12 bytes, UTF-16LE)
cluster: u16First cluster (always 0 for LFN)
name3: [u16; 2]Characters 12-13 (4 bytes, UTF-16LE)
Implementations§
Source§impl Fat32LFNEntry
impl Fat32LFNEntry
Sourcepub fn is_last_lfn(&self) -> bool
pub fn is_last_lfn(&self) -> bool
Check if this is the last LFN entry in sequence
Sourcepub fn sequence_number(&self) -> u8
pub fn sequence_number(&self) -> u8
Get sequence number (without the last entry flag)
Sourcepub fn extract_chars(&self) -> Vec<u16>
pub fn extract_chars(&self) -> Vec<u16>
Extract characters from this LFN entry
Trait Implementations§
Source§impl Clone for Fat32LFNEntry
impl Clone for Fat32LFNEntry
Source§fn clone(&self) -> Fat32LFNEntry
fn clone(&self) -> Fat32LFNEntry
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Fat32LFNEntry
impl Debug for Fat32LFNEntry
impl Copy for Fat32LFNEntry
Auto Trait Implementations§
impl Freeze for Fat32LFNEntry
impl RefUnwindSafe for Fat32LFNEntry
impl Send for Fat32LFNEntry
impl Sync for Fat32LFNEntry
impl Unpin for Fat32LFNEntry
impl UnwindSafe for Fat32LFNEntry
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)