pub struct FactEvent {
pub index: i64,
pub relation: String,
}Expand description
A fact identified for a lifecycle callback.
The fact itself is not handed out: during these callbacks CLIPS is part-way through changing the fact list, and a retained handle taken here could outlive the operation. The identity and relation are copied instead.
Fields§
§index: i64The fact index, the number CLIPS prints as f-<n>.
relation: StringThe fact’s relation name, that is, its deftemplate name.
Trait Implementations§
impl Eq for FactEvent
impl StructuralPartialEq for FactEvent
Auto Trait Implementations§
impl Freeze for FactEvent
impl RefUnwindSafe for FactEvent
impl Send for FactEvent
impl Sync for FactEvent
impl Unpin for FactEvent
impl UnsafeUnpin for FactEvent
impl UnwindSafe for FactEvent
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