pub enum PaletteCommand {
Show 13 variants
Appearance,
Boot,
Delete,
Erase,
Focus,
Inspect,
Launch,
New,
Open,
Privacy,
Record,
Screenshot,
Shutdown,
}Variants§
Implementations§
Source§impl PaletteCommand
impl PaletteCommand
Sourcepub fn all() -> Vec<PaletteCommand>
pub fn all() -> Vec<PaletteCommand>
Alphabetical ordering, used for deterministic ghost-autocomplete
matching. All display names happen to already sort this way, so this
is just CASES — kept as a function to mirror the Swift all and to
stay correct if a display name ever changes.
pub fn display_name(self) -> &'static str
pub fn description(self) -> &'static str
pub fn is_applicable( self, simulator: Option<&Simulator>, is_recording: bool, ) -> bool
Trait Implementations§
Source§impl Clone for PaletteCommand
impl Clone for PaletteCommand
Source§fn clone(&self) -> PaletteCommand
fn clone(&self) -> PaletteCommand
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 moreimpl Copy for PaletteCommand
Source§impl Debug for PaletteCommand
impl Debug for PaletteCommand
impl Eq for PaletteCommand
Source§impl PartialEq for PaletteCommand
impl PartialEq for PaletteCommand
impl StructuralPartialEq for PaletteCommand
Auto Trait Implementations§
impl Freeze for PaletteCommand
impl RefUnwindSafe for PaletteCommand
impl Send for PaletteCommand
impl Sync for PaletteCommand
impl Unpin for PaletteCommand
impl UnsafeUnpin for PaletteCommand
impl UnwindSafe for PaletteCommand
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more