Skip to content

Commit

Permalink
Deriving common traits
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zhixing committed Jul 2, 2024
1 parent f01104d commit 796fa34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/query/default_query_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::query::{
use crate::shape::{HalfSpace, Segment, Shape, ShapeType};

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

impl QueryDispatcherComposite for DefaultQueryDispatcher {
Expand Down
4 changes: 2 additions & 2 deletions src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ pub use self::intersection_test::intersection_test;
pub use self::nonlinear_shape_cast::{cast_shapes_nonlinear, NonlinearRigidMotion};
pub use self::point::{PointProjection, PointQuery, PointQueryWithLocation};
#[cfg(feature = "std")]
pub use self::query_dispatcher::PersistentQueryDispatcher;
pub use self::query_dispatcher::{QueryDispatcher, QueryDispatcherChain};
pub use self::query_dispatcher::{PersistentQueryDispatcher, PersistentQueryDispatcherComposite};
pub use self::query_dispatcher::{QueryDispatcher, QueryDispatcherChain, QueryDispatcherComposite};
pub use self::ray::{Ray, RayCast, RayIntersection, SimdRay};
pub use self::shape_cast::{cast_shapes, ShapeCastHit, ShapeCastOptions, ShapeCastStatus};
pub use self::split::{IntersectResult, SplitResult};
Expand Down
1 change: 1 addition & 0 deletions src/query/query_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ impl<T: QueryDispatcherComposite> QueryDispatcher for T {
}

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

macro_rules! chain_method {
Expand Down

0 comments on commit 796fa34

Please sign in to comment.