Skip to main content

Reflection

Trait Reflection 

Source
pub trait Reflection: HasAssociations {
    // Provided methods
    fn reflect_on_association(name: &str) -> Option<AssociationReflection> { ... }
    fn reflect_on_all_associations() -> Vec<AssociationReflection> { ... }
}
Expand description

Reflection helpers backed by crate::associations::AssociationRegistry.

Provided Methods§

Source

fn reflect_on_association(name: &str) -> Option<AssociationReflection>

Returns the reflection for a single association.

Source

fn reflect_on_all_associations() -> Vec<AssociationReflection>

Returns every declared association reflection in declaration order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§