pub struct TextActionApi;Expand description
The frozen interface descriptor and typed proxy constructors.
Implementations§
Source§impl TextActionApi
impl TextActionApi
Sourcepub const SPEC: InterfaceSpec
pub const SPEC: InterfaceSpec
Exact interface ID, version, method order, and method signatures.
Sourcepub fn write_c_header(writer: &mut impl Write) -> Result
pub fn write_c_header(writer: &mut impl Write) -> Result
Generate C/C++ declarations also importable by Zig with @cImport. The writer may be a String or any allocation-free core::fmt::Write.
Sourcepub fn bind(plugin: &Plugin) -> Result<TextActionBinding<'_>>
pub fn bind(plugin: &Plugin) -> Result<TextActionBinding<'_>>
Validate the interface once; reuse the binding to create objects.
Sourcepub fn create(plugin: &Plugin) -> Result<TextActionProxy<'_>>
pub fn create(plugin: &Plugin) -> Result<TextActionProxy<'_>>
Bind and create a borrowed object.
Sourcepub fn wrap<'__zplugin_lib>(
instance: Instance<'__zplugin_lib>,
) -> Result<TextActionProxy<'__zplugin_lib>>
pub fn wrap<'__zplugin_lib>( instance: Instance<'__zplugin_lib>, ) -> Result<TextActionProxy<'__zplugin_lib>>
Type-check an instance, including one created with an owned library lease.
Auto Trait Implementations§
impl Forget for TextActionApi
impl Freeze for TextActionApi
impl Move for TextActionApi
impl RefUnwindSafe for TextActionApi
impl Send for TextActionApi
impl Sync for TextActionApi
impl Unpin for TextActionApi
impl UnsafeUnpin for TextActionApi
impl UnwindSafe for TextActionApi
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