{"id":13822678,"url":"https://github.com/timsueberkrueb/visit","last_synced_at":"2025-07-19T02:32:41.687Z","repository":{"id":57671683,"uuid":"171018136","full_name":"timsueberkrueb/visit","owner":"timsueberkrueb","description":"Automatically generate Rust code for the Visitor pattern","archived":false,"fork":false,"pushed_at":"2019-04-23T18:47:59.000Z","size":67,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-04-14T05:38:54.241Z","etag":null,"topics":["proc-macro","rust","visitor-pattern"],"latest_commit_sha":null,"homepage":"https://docs.rs/visit","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timsueberkrueb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-16T15:23:22.000Z","updated_at":"2020-06-07T21:12:08.000Z","dependencies_parsed_at":"2022-08-30T14:41:28.056Z","dependency_job_id":null,"html_url":"https://github.com/timsueberkrueb/visit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timsueberkrueb/visit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsueberkrueb%2Fvisit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsueberkrueb%2Fvisit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsueberkrueb%2Fvisit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsueberkrueb%2Fvisit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timsueberkrueb","download_url":"https://codeload.github.com/timsueberkrueb/visit/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsueberkrueb%2Fvisit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265876912,"owners_count":23842956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["proc-macro","rust","visitor-pattern"],"created_at":"2024-08-04T08:02:12.339Z","updated_at":"2025-07-19T02:32:41.670Z","avatar_url":"https://github.com/timsueberkrueb.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# visit\n\nAutomatically generate code for the [Visitor pattern](https://en.wikipedia.org/wiki/Visitor_pattern).\n\n## Usage\n\n```rust\nvisit! {\n    // Automatically generates `Visitor` and `AcceptVisitor` traits\n    // The `Visitor` trait will contain `visit_\u003cchild\u003e` functions for all items inside of the macro call.\n    // The `AcceptVisitor` trait will be implemented automatically for all items.\n    #![visitor(name = \"Visitor\")]\n\n    struct Bar {\n        a: Child,\n        b: Child,\n    }\n\n    struct Child {}\n}\n\nstruct MyVisitor;\n\nimpl Visitor for MyVisitor {\n    fn visit_child(\u0026mut self, _child: \u0026Child) {\n        // Do something cool\n    }\n}\n```\n\n## License\n\nvisit is licensed under either of the following licenses, at your option:\n\n* [Apache License Version 2.0](LICENSE-APACHE)\n* [MIT License](LICENSE-MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimsueberkrueb%2Fvisit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimsueberkrueb%2Fvisit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimsueberkrueb%2Fvisit/lists"}