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 for ShortFileName
impl PartialEq for ShortFileName
impl Eq for ShortFileName
impl StructuralPartialEq for ShortFileName
Auto Trait Implementations§
impl Freeze for ShortFileName
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