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() -> ShortFileName
pub const fn parent_dir() -> ShortFileName
Get a short file name containing “..”, which means “parent directory”.
Sourcepub const fn this_dir() -> ShortFileName
pub const fn this_dir() -> ShortFileName
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.
pub fn lfn_checksum(&self) -> u8
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§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§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 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§
§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, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.