add consts to curve module functions (#14785)

Just a really minor polish of the ongoing curve RFC implementation
effort
This commit is contained in:
Robert Walter 2024-08-16 19:28:29 +00:00 committed by GitHub
parent cf69488982
commit f88ab5a1f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -171,7 +171,7 @@ impl<T> EvenCore<T> {
/// The domain of the curve derived from this core.
#[inline]
pub fn domain(&self) -> Interval {
pub const fn domain(&self) -> Interval {
self.domain
}

View file

@ -73,13 +73,13 @@ impl Interval {
/// Get the start of this interval.
#[inline]
pub fn start(self) -> f32 {
pub const fn start(self) -> f32 {
self.start
}
/// Get the end of this interval.
#[inline]
pub fn end(self) -> f32 {
pub const fn end(self) -> f32 {
self.end
}