Skip to content

Commit

Permalink
v3: seal the Cast trait
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornaz committed Aug 23, 2023
1 parent 25d8aca commit dfb9339
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ where
}
}

#[sealed]
pub trait Cast<Rhs> {
fn cast(&self, vector: Vec2, target: &Rhs) -> Option<CastHit>;
}

#[sealed]
impl<A, B> Cast<B> for A
where
A: Shape,
Expand Down

0 comments on commit dfb9339

Please sign in to comment.