Skip to content

Commit 796fa34

Browse files
committed
Deriving common traits
1 parent f01104d commit 796fa34

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/query/default_query_dispatcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::query::{
1515
use crate::shape::{HalfSpace, Segment, Shape, ShapeType};
1616

1717
/// A dispatcher that exposes built-in queries
18-
#[derive(Debug, Clone)]
18+
#[derive(Debug, Clone, Copy)]
1919
pub struct DefaultQueryDispatcher;
2020

2121
impl QueryDispatcherComposite for DefaultQueryDispatcher {

src/query/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ pub use self::intersection_test::intersection_test;
3838
pub use self::nonlinear_shape_cast::{cast_shapes_nonlinear, NonlinearRigidMotion};
3939
pub use self::point::{PointProjection, PointQuery, PointQueryWithLocation};
4040
#[cfg(feature = "std")]
41-
pub use self::query_dispatcher::PersistentQueryDispatcher;
42-
pub use self::query_dispatcher::{QueryDispatcher, QueryDispatcherChain};
41+
pub use self::query_dispatcher::{PersistentQueryDispatcher, PersistentQueryDispatcherComposite};
42+
pub use self::query_dispatcher::{QueryDispatcher, QueryDispatcherChain, QueryDispatcherComposite};
4343
pub use self::ray::{Ray, RayCast, RayIntersection, SimdRay};
4444
pub use self::shape_cast::{cast_shapes, ShapeCastHit, ShapeCastOptions, ShapeCastStatus};
4545
pub use self::split::{IntersectResult, SplitResult};

src/query/query_dispatcher.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ impl<T: QueryDispatcherComposite> QueryDispatcher for T {
366366
}
367367

368368
/// The composition of two dispatchers
369+
#[derive(Clone, Copy, Debug)]
369370
pub struct QueryDispatcherChain<T, U>(T, U);
370371

371372
macro_rules! chain_method {

0 commit comments

Comments
 (0)