add const
s to curve module functions (#14785)
Just a really minor polish of the ongoing curve RFC implementation effort
This commit is contained in:
parent
cf69488982
commit
f88ab5a1f2
@ -171,7 +171,7 @@ impl<T> EvenCore<T> {
|
|||||||
|
|
||||||
/// The domain of the curve derived from this core.
|
/// The domain of the curve derived from this core.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn domain(&self) -> Interval {
|
pub const fn domain(&self) -> Interval {
|
||||||
self.domain
|
self.domain
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,13 +73,13 @@ impl Interval {
|
|||||||
|
|
||||||
/// Get the start of this interval.
|
/// Get the start of this interval.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn start(self) -> f32 {
|
pub const fn start(self) -> f32 {
|
||||||
self.start
|
self.start
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the end of this interval.
|
/// Get the end of this interval.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn end(self) -> f32 {
|
pub const fn end(self) -> f32 {
|
||||||
self.end
|
self.end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user