Struct shared_mime_embedded::Answer
source · pub struct Answer<'a> { /* private fields */ }
Expand description
Result of looking up a MIME type.
Implementations§
source§impl<'a> Answer<'a>
impl<'a> Answer<'a>
sourcepub fn is_definite(&self) -> bool
pub fn is_definite(&self) -> bool
Query whether this answer is definite (resolved to a single, known type).
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Query whether this answer is unknown (no resulting types).
sourcepub fn is_ambiguous(&self) -> bool
pub fn is_ambiguous(&self) -> bool
Query whether this answer is ambiguous (multiple matching types).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Answer<'a>
impl<'a> RefUnwindSafe for Answer<'a>
impl<'a> Send for Answer<'a>
impl<'a> Sync for Answer<'a>
impl<'a> Unpin for Answer<'a>
impl<'a> UnwindSafe for Answer<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)