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 const fn parent_dir() -> Self
pub const fn parent_dir() -> Self
Get a short file name containing “..”, which means “parent directory”.
sourcepub const fn this_dir() -> Self
pub const fn this_dir() -> Self
Get a short file name containing “..”, which means “this directory”.
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 for ShortFileName
impl PartialEq 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 ==
.source§impl ToShortFileName for &ShortFileName
impl ToShortFileName for &ShortFileName
source§fn to_short_filename(self) -> Result<ShortFileName, FilenameError>
fn to_short_filename(self) -> Result<ShortFileName, FilenameError>
Try and convert this value into a
ShortFileName
.source§impl ToShortFileName for ShortFileName
impl ToShortFileName for ShortFileName
source§fn to_short_filename(self) -> Result<ShortFileName, FilenameError>
fn to_short_filename(self) -> Result<ShortFileName, FilenameError>
Try and convert this value into a
ShortFileName
.impl Eq for ShortFileName
impl StructuralPartialEq for ShortFileName
Auto Trait Implementations§
impl RefUnwindSafe for ShortFileName
impl Send for ShortFileName
impl Sync for ShortFileName
impl Unpin for ShortFileName
impl UnwindSafe for ShortFileName
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more