Trait koto_runtime::KotoEntries
source · pub trait KotoEntries {
// Provided method
fn entries(&self) -> Option<KMap> { ... }
}
Expand description
A trait that allows objects to support ‘.’ lookups
This is the mechanism for attaching custom methods to objects in the Koto runtime.
The #[koto_impl]
macro provides an easy way to declare methods that should be made available
via lookup by using the #[koto_method]
attribute, and then derives an appropriate
implementation of KotoEntries.