#[non_exhaustive]pub enum AssociatedKind {
Protocol(&'static Protocol),
FieldFn(&'static Protocol, Cow<'static, str>),
IndexFn(&'static Protocol, usize),
Instance(Cow<'static, str>),
}
Expand description
The kind of an associated function.
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.
Protocol(&'static Protocol)
A protocol function implemented on the type itself.
FieldFn(&'static Protocol, Cow<'static, str>)
A field function with the given protocol.
IndexFn(&'static Protocol, usize)
An index function with the given protocol.
Instance(Cow<'static, str>)
The instance function refers to the given named instance fn.
Trait Implementations§
Source§impl Debug for AssociatedKind
impl Debug for AssociatedKind
Source§impl Display for AssociatedKind
impl Display for AssociatedKind
Source§impl Hash for AssociatedKind
impl Hash for AssociatedKind
Source§impl PartialEq for AssociatedKind
impl PartialEq for AssociatedKind
Source§impl TryClone for AssociatedKind
impl TryClone for AssociatedKind
impl Eq for AssociatedKind
impl StructuralPartialEq for AssociatedKind
Auto Trait Implementations§
impl Freeze for AssociatedKind
impl RefUnwindSafe for AssociatedKind
impl Send for AssociatedKind
impl Sync for AssociatedKind
impl Unpin for AssociatedKind
impl UnwindSafe for AssociatedKind
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<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§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.