pub struct GetFileExtension { /* private fields */ }
Expand description
Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously
Implementations§
Trait Implementations§
Source§impl AsRef<GetFileExtension> for GetFileExtension
impl AsRef<GetFileExtension> for GetFileExtension
Source§fn as_ref(&self) -> &GetFileExtension
fn as_ref(&self) -> &GetFileExtension
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for GetFileExtension
impl Clone for GetFileExtension
Source§fn clone(&self) -> GetFileExtension
fn clone(&self) -> GetFileExtension
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 GetFileExtension
impl Debug for GetFileExtension
Source§impl Default for GetFileExtension
impl Default for GetFileExtension
Source§fn default() -> GetFileExtension
fn default() -> GetFileExtension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetFileExtension
impl<'de> Deserialize<'de> for GetFileExtension
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetFileExtension
impl RefUnwindSafe for GetFileExtension
impl Send for GetFileExtension
impl Sync for GetFileExtension
impl Unpin for GetFileExtension
impl UnwindSafe for GetFileExtension
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