oops
Some checks are pending
CI / testing (macos-latest) (push) Waiting to run
CI / testing (ubuntu-latest) (push) Waiting to run
CI / testing (windows-latest) (push) Waiting to run
CI / linting (macos-latest) (push) Waiting to run
CI / linting (ubuntu-latest) (push) Waiting to run
CI / linting (windows-latest) (push) Waiting to run
CI / Documentation (push) Waiting to run
CI / coverage (ubuntu-latest) (push) Waiting to run

This commit is contained in:
Joeri Exelmans 2025-11-04 10:52:45 +01:00
parent ac53538207
commit 6113e93f2c

View file

@ -33,8 +33,8 @@ impl<T: Clone> InterpolationMethod<T> for Constant {
/// If the signal does not have a value at a given point, a fixed value is returned
pub struct DefaultFalse;
impl<Bool> InterpolationMethod<Bool> for DefaultFalse {
fn at(a: &Sample<Bool>, b: &Sample<Bool>, time: Duration) -> Option<Bool> {
impl<bool> InterpolationMethod<bool> for DefaultFalse {
fn at(a: &Sample<bool>, b: &Sample<bool>, time: Duration) -> Option<bool> {
if time == b.time {
Some(b.value.clone())
} else if a.time <= time && time < b.time {
@ -44,7 +44,7 @@ impl<Bool> InterpolationMethod<Bool> for DefaultFalse {
}
}
fn find_intersection(_a: &Neighborhood<Bool>, _b: &Neighborhood<Bool>) -> Option<Sample<Bool>> {
fn find_intersection(_a: &Neighborhood<bool>, _b: &Neighborhood<bool>) -> Option<Sample<bool>> {
// The signals must be either constant or colinear. Thus, return None.
None
}