pub struct EntityBytecode {
pub state_id: u32,
pub handlers: HashMap<String, Vec<OpCode>>,
pub entity_name: String,
pub computed_fields_evaluator: Option<Box<dyn Fn(&mut Value) -> Result<(), Box<dyn Error>> + Send + Sync>>,
}Fields§
§state_id: u32§handlers: HashMap<String, Vec<OpCode>>§entity_name: String§computed_fields_evaluator: Option<Box<dyn Fn(&mut Value) -> Result<(), Box<dyn Error>> + Send + Sync>>Optional callback for evaluating computed fields
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityBytecode
impl !RefUnwindSafe for EntityBytecode
impl Send for EntityBytecode
impl Sync for EntityBytecode
impl Unpin for EntityBytecode
impl !UnwindSafe for EntityBytecode
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