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