pub struct Mime { /* private fields */ }
Implementations§
Source§impl Mime
impl Mime
pub fn type_(&self) -> &str
pub fn subtype(&self) -> &str
pub fn suffix(&self) -> Option<&str>
pub fn params(&self) -> Params<'_> ⓘ
pub fn param<'a>(&'a self, attr: &str) -> Option<&'a str>
pub fn has_params(&self) -> bool
pub fn without_params(self) -> Self
pub fn essence(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mime
impl RefUnwindSafe for Mime
impl Send for Mime
impl Sync for Mime
impl Unpin for Mime
impl UnwindSafe for Mime
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