#[repr(C)]pub struct AbiOutput {
pub ptr: *mut u8,
pub len: usize,
pub cap: usize,
}Expand description
Bytes a plugin allocated and hands to the host, which gives them back
through PluginVTable::free (the plugin’s allocator frees them).
Fields§
§ptr: *mut u8§len: usize§cap: usizeImplementations§
Source§impl AbiOutput
impl AbiOutput
Sourcepub fn from_string(text: String) -> Self
pub fn from_string(text: String) -> Self
Hand text over; free it with free_output.
Trait Implementations§
Auto Trait Implementations§
impl !Send for AbiOutput
impl !Sync for AbiOutput
impl Freeze for AbiOutput
impl RefUnwindSafe for AbiOutput
impl Unpin for AbiOutput
impl UnsafeUnpin for AbiOutput
impl UnwindSafe for AbiOutput
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