pub trait RustConstructorResource: Debug {
// Required methods
fn name(&self) -> &str;
fn expose_type(&self) -> &str;
fn active(&self) -> bool;
fn modify_active(&mut self, active: bool);
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
}Expand description
核心特征,用于统一管理Rust Constructor资源。
Required Methods§
Sourcefn expose_type(&self) -> &str
fn expose_type(&self) -> &str
返回资源类型。
Sourcefn modify_active(&mut self, active: bool)
fn modify_active(&mut self, active: bool)
改变活跃状态。
Sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
用于可变类型转换。