Merge pull request #100 from perlindgren/master

Default for Spline
This commit is contained in:
Dimitri Sabadie 2023-11-22 00:09:57 +01:00 committed by GitHub
commit c3670d6b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ use std::cmp::Ordering;
/// for the required interpolation mode, you get `None`. /// for the required interpolation mode, you get `None`.
/// - [`Spline::clamped_sample`]: behaves like [`Spline::sample`] but will return either the first /// - [`Spline::clamped_sample`]: behaves like [`Spline::sample`] but will return either the first
/// or last key if out of bound; it will return `None` if not enough key. /// or last key if out of bound; it will return `None` if not enough key.
#[derive(Debug, Clone)] #[derive(Debug, Clone, Default)]
#[cfg_attr( #[cfg_attr(
any(feature = "serialization", feature = "serde"), any(feature = "serialization", feature = "serde"),
derive(Deserialize, Serialize) derive(Deserialize, Serialize)