pub struct PaletteEntry {
pub id: Symbol,
pub label: String,
pub kind: EntryKind,
pub target: Expr,
}Expand description
One searchable palette entry.
Fields§
§id: SymbolStable entry id.
label: StringHuman-readable label, matched against the query.
kind: EntryKindWhat kind of thing this entry is.
target: ExprThe target value (a resource ref, lens id, card, command, …).
Implementations§
Trait Implementations§
Source§impl Clone for PaletteEntry
impl Clone for PaletteEntry
Source§fn clone(&self) -> PaletteEntry
fn clone(&self) -> PaletteEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PaletteEntry
impl RefUnwindSafe for PaletteEntry
impl Send for PaletteEntry
impl Sync for PaletteEntry
impl Unpin for PaletteEntry
impl UnsafeUnpin for PaletteEntry
impl UnwindSafe for PaletteEntry
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