Enum UsePhase
#[non_exhaustive]pub enum UsePhase {
ItemBeforeBlock,
Block,
ItemAfterBlock,
}Expand description
The behaviour about to run in UseItemOnBlockEvent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ItemBeforeBlock
IItemExtension.onItemUseFirst, before the item’s Part and the
block’s behaviour.
Block
BlockBehaviour.useItemOn, before the block’s Part and template.
ItemAfterBlock
Item.useOn, after the block passed and before the item’s Part.
Trait Implementations§
impl Copy for UsePhase
impl Eq for UsePhase
impl StructuralPartialEq for UsePhase
Auto Trait Implementations§
impl Freeze for UsePhase
impl RefUnwindSafe for UsePhase
impl Send for UsePhase
impl Sync for UsePhase
impl Unpin for UsePhase
impl UnsafeUnpin for UsePhase
impl UnwindSafe for UsePhase
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