# Is one string in another string - contains?

* contains
* find
* in
* index

* `contains` will return a boolean value telling if one string contains the other
* `find` will return a number indicating the location of a substring (or `None` if the string cannot be found).

{% embed include file="src/examples/strings/contains/src/main.rs" %}
{% embed include file="src/examples/strings/contains/out.out" %}


