pub struct Output<'a> { /* private fields */ }Implementations§
Source§impl<'a> Output<'a>
impl<'a> Output<'a>
Sourcepub unsafe fn from_raw(slot: *mut StbString) -> Self
pub unsafe fn from_raw(slot: *mut StbString) -> Self
§Safety
A non-null slot must be aligned, writable and exclusively borrowed
for 'a. The host reclaims a written string through this plugin’s
free_string callback after the handler returns.
pub fn is_available(&self) -> bool
Sourcepub fn write(&mut self, text: String) -> bool
pub fn write(&mut self, text: String) -> bool
Allocate only when a slot exists. Repeated writes reclaim only outputs this view itself produced, never a value initially supplied by the host.
pub fn clear(&mut self) -> bool
Auto Trait Implementations§
impl<'a> !UnwindSafe for Output<'a>
impl<'a> Freeze for Output<'a>
impl<'a> RefUnwindSafe for Output<'a>
impl<'a> Send for Output<'a>
impl<'a> Sync for Output<'a>
impl<'a> Unpin for Output<'a>
impl<'a> UnsafeUnpin for Output<'a>
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