pub trait Bounded { // Required method fn bound(&self) -> AABB; }
Your shapes needs to implement Bounded trait to build a KD-tree around it.
Bounded
This function return the Axis-aligned bounding boxes (AABB) of the object.
AABB
For more information check AABB.