#[non_exhaustive]pub enum ImplContextMenu {
Menu(Py<Menu>),
Submenu(Py<Submenu>),
}
Expand description
The Implementers of tauri::menu::ContextMenu.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<'py> FromPyObject<'py> for ImplContextMenu
impl<'py> FromPyObject<'py> for ImplContextMenu
Source§impl<'_a, 'py> IntoPyObject<'py> for &'_a ImplContextMenu
impl<'_a, 'py> IntoPyObject<'py> for &'_a ImplContextMenu
Source§type Output = Bound<'py, <&'_a ImplContextMenu as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <&'_a ImplContextMenu as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
Performs the conversion.
Source§impl<'py> IntoPyObject<'py> for ImplContextMenu
impl<'py> IntoPyObject<'py> for ImplContextMenu
Source§type Output = Bound<'py, <ImplContextMenu as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <ImplContextMenu as IntoPyObject<'py>>::Target>
The smart pointer type to use. Read more
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ImplContextMenu
impl !RefUnwindSafe for ImplContextMenu
impl Send for ImplContextMenu
impl Sync for ImplContextMenu
impl Unpin for ImplContextMenu
impl !UnwindSafe for ImplContextMenu
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<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
Converts
self
into an owned Python object, dropping type information.