Skip to content

Commit

Permalink
Open up Primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanUkhov committed Aug 8, 2024
1 parent 0b09d56 commit b534a59
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/primitive.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
macro_rules! declare {
($(($method:ident, $f32:expr, $f64:expr, ($($argument:ident: $type_outer:tt as $type_inner:tt),*) -> $return:tt),)*) => {
/// Primitive functions.
#[doc(hidden)]
pub trait Primitive: Sized {
/// The number π.
const PI: Self;

$(
/// See `libm` for further details.
fn $method(self, $($argument: $type_outer),*) -> $return;
)*
$(fn $method(self, $($argument: $type_outer),*) -> $return;)*
}
}
}
Expand Down

0 comments on commit b534a59

Please sign in to comment.