Skip to content

Commit

Permalink
better example documentation again
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jun 29, 2023
1 parent 830921e commit 317b81d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,13 @@ pub struct ColorCoordinatesSceneParts {
}

impl ScenePartCollection for ColorCoordinatesSceneParts {
type Context = (); // Unused for this example.
type ScenePartData = (); // Unused for this example.
/// Scene context is shared between all scene parts.
/// For this Space View we don't need any scene context.
type Context = ();

/// Scene parts can have a common data object that they expose.
/// For this example this is not needed.
type ScenePartData = ();

fn vec_mut(&mut self) -> Vec<&mut dyn ScenePart<Self>> {
vec![&mut self.colors]
Expand Down

0 comments on commit 317b81d

Please sign in to comment.