Struct HookReference
pub struct HookReference { /* private fields */ }Expand description
WordPress hook reference metadata.
Implementations§
§impl HookReference
impl HookReference
pub const fn new(name: HookName, kind: HookKind) -> HookReference
pub const fn with_priority(self, priority: HookPriority) -> HookReference
pub fn with_callback(self, callback: HookCallbackMetadata) -> HookReference
pub const fn name(&self) -> &HookName
pub const fn kind(&self) -> HookKind
pub const fn priority(&self) -> HookPriority
pub const fn callback(&self) -> Option<&HookCallbackMetadata>
Trait Implementations§
§impl Clone for HookReference
impl Clone for HookReference
§fn clone(&self) -> HookReference
fn clone(&self) -> HookReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for HookReference
impl Debug for HookReference
§impl PartialEq for HookReference
impl PartialEq for HookReference
impl Eq for HookReference
impl StructuralPartialEq for HookReference
Auto Trait Implementations§
impl Freeze for HookReference
impl RefUnwindSafe for HookReference
impl Send for HookReference
impl Sync for HookReference
impl Unpin for HookReference
impl UnsafeUnpin for HookReference
impl UnwindSafe for HookReference
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