Skip to main content

GetEntity

Trait GetEntity 

Source
pub trait GetEntity {
    // Required method
    fn entity(&self) -> &Rc<Entity>;
}
Expand description

The GetEntity trait is used to provide access to an objects Entity

Required Methods§

Source

fn entity(&self) -> &Rc<Entity>

Return the Entity

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§