pub struct ComponentInputs {
pub ctx: *mut c_void,
pub free_ctx: fn(ctx: *mut c_void),
pub text: fn(ctx: *mut c_void, input_id: TextInputId) -> String,
}Expand description
Used to retrieve the component’s inputs.
Fields§
§ctx: *mut c_voidAn arbitrary context object used when determining how to retrieve the component input.
free_ctx: fn(ctx: *mut c_void)Free the context object.
text: fn(ctx: *mut c_void, input_id: TextInputId) -> StringGet one of the component’s text inputs.
Implementations§
Trait Implementations§
Source§impl Drop for ComponentInputs
impl Drop for ComponentInputs
Source§impl FromComponentOutputArgs for ComponentInputs
impl FromComponentOutputArgs for ComponentInputs
Source§fn from_args(args: ComponentOutputArgs) -> Self
fn from_args(args: ComponentOutputArgs) -> Self
Create the type using
ComponentOutputArgs.Auto Trait Implementations§
impl Freeze for ComponentInputs
impl RefUnwindSafe for ComponentInputs
impl !Send for ComponentInputs
impl !Sync for ComponentInputs
impl Unpin for ComponentInputs
impl UnsafeUnpin for ComponentInputs
impl UnwindSafe for ComponentInputs
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