pub struct PropertyHook {
pub kind: PropertyHookKind,
pub body: PropertyHookBody,
pub is_final: bool,
pub by_ref: bool,
pub params: Box<[Param]>,
pub attributes: Box<[Attribute]>,
pub span: Span,
}Expand description
A property get or set hook.
Fields§
§kind: PropertyHookKindget or set.
body: PropertyHookBodyHook body.
is_final: boolWhether final.
by_ref: boolWhether it returns by reference.
params: Box<[Param]>Parameters of a set hook.
attributes: Box<[Attribute]>Attributes on the hook.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for PropertyHook
impl Clone for PropertyHook
Source§impl Debug for PropertyHook
impl Debug for PropertyHook
Auto Trait Implementations§
impl Freeze for PropertyHook
impl RefUnwindSafe for PropertyHook
impl Send for PropertyHook
impl Sync for PropertyHook
impl Unpin for PropertyHook
impl UnsafeUnpin for PropertyHook
impl UnwindSafe for PropertyHook
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