Skip to content

Controlling Visibility

Controlling visibilityΒΆ

When making a [[library]], usually we make a set of [[method]]s that users can use to do something. When we [[compile]] them, there will be a warning, that our project does not call them.

To prevent this, we can use the [[visibility keyword]] pub, which will mark it as a public [[API]].

pub fn connect() {}