pub struct DescriptorHook {
pub name: String,
pub value: PythonObjectValue,
}Expand description
Hook token used to prove descriptor receiver behavior.
Fields§
§name: StringStable hook name.
value: PythonObjectValueValue produced by a getter.
Trait Implementations§
Source§impl Clone for DescriptorHook
impl Clone for DescriptorHook
Source§fn clone(&self) -> DescriptorHook
fn clone(&self) -> DescriptorHook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DescriptorHook
impl Debug for DescriptorHook
Source§impl Default for DescriptorHook
impl Default for DescriptorHook
Source§fn default() -> DescriptorHook
fn default() -> DescriptorHook
Returns the “default value” for a type. Read more
impl Eq for DescriptorHook
Source§impl PartialEq for DescriptorHook
impl PartialEq for DescriptorHook
impl StructuralPartialEq for DescriptorHook
Auto Trait Implementations§
impl Freeze for DescriptorHook
impl RefUnwindSafe for DescriptorHook
impl Send for DescriptorHook
impl Sync for DescriptorHook
impl Unpin for DescriptorHook
impl UnsafeUnpin for DescriptorHook
impl UnwindSafe for DescriptorHook
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.