Trait memflex::Parent

source ·
pub unsafe trait Parent<C>: Sizedwhere
    C: Child<Parent = Self>,
{ unsafe fn downcast(&self) -> &C { ... } unsafe fn downcast_mut(&mut self) -> &mut C { ... } }
Expand description

Struct that is the parent for an other struct.

Safety

This trait should not be implemented manually.

Provided Methods§

Casts parent to an immutable child reference

Safety

There is no way of checking the actual type.

Casts parent to a mutable child reference

Safety

There is no way of checking the actual type.

Implementors§