1
2
3
4
5
6
7
8
9
10
11
use crate::SmithRemovalReason;

/// Trait for handling actions when a Smith is deleted.
pub trait OnSmithDelete<IdtyIndex> {
    /// Handle the deletion of a smith.
    fn on_smith_delete(idty_index: IdtyIndex, reason: SmithRemovalReason);
}

impl<IdtyIndex> OnSmithDelete<IdtyIndex> for () {
    fn on_smith_delete(_: IdtyIndex, _: SmithRemovalReason) {}
}