Skip to content

Commit 5bb8f29

Browse files
pub GraphInfo (#20149)
IntoScheduleConfigs has the constraint `T: Schedulable<Metadata = GraphInfo, GroupMetadata = Chain>`. Making `GraphInfo` public allows external crates to implement blanket traits for any `IntoSheduleConfigs`: ```rust pub struct ScheduleIntoMyTraitMarker; impl<S, T, M> MyTrait<(ScheduleIntoMyTypeMarker, T, M)> for S where S: 'static + Clone + IntoScheduleConfigs<T, M>, T: Schedulable<Metadata = GraphInfo, GroupMetadata = Chain>, { } ``` --------- Co-authored-by: Alice Cecile <[email protected]>
1 parent f858c0d commit 5bb8f29

File tree

1 file changed

+1
-0
lines changed
  • crates/bevy_ecs/src/schedule

1 file changed

+1
-0
lines changed

crates/bevy_ecs/src/schedule/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ mod schedule;
1010
mod set;
1111
mod stepping;
1212

13+
pub use self::graph::GraphInfo;
1314
use self::graph::*;
1415
pub use self::{condition::*, config::*, executor::*, node::*, schedule::*, set::*};
1516
pub use pass::ScheduleBuildPass;

0 commit comments

Comments
 (0)