Enum rune::compile::meta::AssociatedKind
source · #[non_exhaustive]pub enum AssociatedKind {
Protocol(Protocol),
FieldFn(Protocol, Cow<'static, str>),
IndexFn(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(Protocol)
A protocol function implemented on the type itself.
FieldFn(Protocol, Cow<'static, str>)
A field function with the given protocol.
IndexFn(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§fn eq(&self, other: &AssociatedKind) -> bool
fn eq(&self, other: &AssociatedKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryClone for AssociatedKind
impl TryClone for AssociatedKind
impl Eq for AssociatedKind
impl StructuralPartialEq for AssociatedKind
Auto Trait Implementations§
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.