# Struct with vector of structs - Polygon

* We can create a `struct` that has a single attribute which is a vector of `Point` instances.
* We can then use `impl` to implement a function.

{% embed include file="src/examples/struct/polygon-struct/src/main.rs" %}
{% embed include file="src/examples/struct/polygon-struct/out.out" %}


