pub struct Call {
pub id: u16,
pub name: String,
pub signature: Signature,
pub argument_count: usize,
pub host_arguments: Vec<String>,
}Fields§
§id: u16§name: String§signature: Signature§argument_count: usize§host_arguments: Vec<String>Implementations§
Source§impl Call
impl Call
Sourcepub fn validate_signature(
&self,
arguments: &[&str],
output: Option<&str>,
) -> Result<(), GeneratorError>
pub fn validate_signature( &self, arguments: &[&str], output: Option<&str>, ) -> Result<(), GeneratorError>
Ensure a handwritten adapter still agrees with the discovered C ABI. Context-only helper arguments are not part of the guest contract.
Sourcepub fn argument_is_object(&self, index: usize) -> bool
pub fn argument_is_object(&self, index: usize) -> bool
Whether the guest argument at index is an LVGL object pointer.
Sourcepub fn argument_is_integer(&self, index: usize, catalog: &CallCatalog) -> bool
pub fn argument_is_integer(&self, index: usize, catalog: &CallCatalog) -> bool
Whether the guest argument at index is a non-pointer integer: a
primitive or C integer type, or one of the catalog’s integer aliases.
Sourcepub fn generic_safe(&self) -> bool
pub fn generic_safe(&self) -> bool
Conservative policy: pointer lifetimes cannot be inferred from a C signature. Strings, arrays, native structures and unions need explicit adapters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Call
impl RefUnwindSafe for Call
impl !Send for Call
impl !Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
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