The ::
is just a Naming Convention for function names. Is a coding-style such as snake_case or CamelCase
The convention for Function names in shell style commonly is:
Lower-case, with underscores to separate words. Separate libraries
with ::. Parentheses are required after the function name. The keyword
function is optional, but must be used consistently throughout a
project.
You can check here.