Publish UI factory contracts and separate native options from subclass fields

This commit is contained in:
2026-10-22 15:08:29 +08:00
parent 8b698cb39f
commit ab40e424e0
9 changed files with 358 additions and 9 deletions
+6 -1
View File
@@ -179,8 +179,13 @@ impl NativeCallable for Method {
}
#[derive(Debug)]
pub struct Constructor;
pub struct Constructor {
pub signature: Option<endor_core::CallSignature>,
}
impl NativeCallable for Constructor {
fn signature(&self) -> Option<endor_core::CallSignature> {
self.signature.clone()
}
fn arity(&self) -> Option<endor_core::CallArity> {
Some(endor_core::CallArity::range(2, usize::MAX))
}