Mildew and mold are both types of fungus. They can form on a variety of surfaces, including swimsuits, in humid environments.