pub enum ContextItem {
Separator(ComObject<SeparatorContextItem>),
Command(ComObject<CommandContextItem>),
}Expand description
Represents an item in the context menu, which can be either a separator or a command.
The IContextItem interface is used to define a context menu item in the Command Palette.
Variants§
Separator(ComObject<SeparatorContextItem>)
A separator item in the context menu.
Command(ComObject<CommandContextItem>)
A command item in the context menu.
Trait Implementations§
Source§impl From<&ContextItem> for IContextItem
impl From<&ContextItem> for IContextItem
Source§fn from(item: &ContextItem) -> Self
fn from(item: &ContextItem) -> Self
Converts to this type from the input type.
Source§impl From<ComObject<CommandContextItem>> for ContextItem
impl From<ComObject<CommandContextItem>> for ContextItem
Source§fn from(item: ComObject<CommandContextItem>) -> Self
fn from(item: ComObject<CommandContextItem>) -> Self
Converts to this type from the input type.
Source§impl From<ComObject<SeparatorContextItem>> for ContextItem
impl From<ComObject<SeparatorContextItem>> for ContextItem
Source§fn from(item: ComObject<SeparatorContextItem>) -> Self
fn from(item: ComObject<SeparatorContextItem>) -> Self
Converts to this type from the input type.
Source§impl From<CommandContextItem> for ContextItem
impl From<CommandContextItem> for ContextItem
Source§fn from(item: CommandContextItem) -> Self
fn from(item: CommandContextItem) -> Self
Converts to this type from the input type.
Source§impl From<SeparatorContextItem> for ContextItem
impl From<SeparatorContextItem> for ContextItem
Source§fn from(item: SeparatorContextItem) -> Self
fn from(item: SeparatorContextItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextItem
impl RefUnwindSafe for ContextItem
impl Send for ContextItem
impl Sync for ContextItem
impl Unpin for ContextItem
impl UnsafeUnpin for ContextItem
impl UnwindSafe for ContextItem
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