pub struct Candidate<'a> {
pub app: &'a App,
pub made_for: bool,
pub is_default: bool,
}Expand description
One application that could open a type, and why it is offered.
Fields§
§app: &'a App§made_for: boolRegistered for this type itself, rather than for something it is a kind of. “Can open it” and “is meant for it” are different claims, and a chooser should not put an archive manager above a model viewer.
is_default: boolThe one that opens this type today.
Trait Implementations§
impl<'a> Eq for Candidate<'a>
impl<'a> StructuralPartialEq for Candidate<'a>
Auto Trait Implementations§
impl<'a> Freeze for Candidate<'a>
impl<'a> RefUnwindSafe for Candidate<'a>
impl<'a> Send for Candidate<'a>
impl<'a> Sync for Candidate<'a>
impl<'a> Unpin for Candidate<'a>
impl<'a> UnsafeUnpin for Candidate<'a>
impl<'a> UnwindSafe for Candidate<'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