Struct embedded_sdmmc::ShortFileName
source · pub struct ShortFileName { /* private fields */ }Expand description
An MS-DOS 8.3 filename. 7-bit ASCII only. All lower-case is converted to upper-case by default.
Implementations§
source§impl ShortFileName
impl ShortFileName
sourcepub fn create_from_str(name: &str) -> Result<ShortFileName, FilenameError>
pub fn create_from_str(name: &str) -> Result<ShortFileName, FilenameError>
Create a new MS-DOS 8.3 space-padded file name as stored in the directory entry.
sourcepub fn create_from_str_mixed_case(
name: &str
) -> Result<ShortFileName, FilenameError>
pub fn create_from_str_mixed_case(
name: &str
) -> Result<ShortFileName, FilenameError>
Create a new MS-DOS 8.3 space-padded file name as stored in the directory entry. Use this for volume labels with mixed case.
Trait Implementations§
source§impl Clone for ShortFileName
impl Clone for ShortFileName
source§fn clone(&self) -> ShortFileName
fn clone(&self) -> ShortFileName
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ShortFileName
impl Debug for ShortFileName
source§impl Display for ShortFileName
impl Display for ShortFileName
source§impl PartialEq<ShortFileName> for ShortFileName
impl PartialEq<ShortFileName> for ShortFileName
source§fn eq(&self, other: &ShortFileName) -> bool
fn eq(&self, other: &ShortFileName) -> bool
This method tests for
self and other values to be equal, and is used
by ==.