radn-rs/src/rcore/points.rs
2023-05-26 08:52:58 +00:00

13 lines
399 B
Rust

use super::*;
pub trait TakesPoints<'a, Ctx: Context<'a>> {
fn take<A: Mentionable<'a, Ctx>>(&mut self, point: &Point<'a, Ctx, A>);
}
impl<'a, Ctx: Context<'a>> TakesPoints<'a, Ctx> for Vec<u8> {
/// The only natural implementation, as used in [`Mentionable::topology`].
fn take<A: Mentionable<'a, Ctx>>(&mut self, point: &Point<'a, Ctx, A>) {
self.extend(point.point)
}
}