Skip to content

Commit

Permalink
FIX: for rust version <= 1.79
Browse files Browse the repository at this point in the history
  • Loading branch information
tsionyx committed Dec 1, 2024
1 parent c63fb09 commit 632e92a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/connective/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ impl<const ARITY: usize, T: BoolFnExt<ARITY>> UpcastFrom<T> for dyn BoolFnExt<AR
///
/// More of it: <https://en.wikipedia.org/wiki/Functional_completeness#Characterization_of_functional_completeness>.
pub fn is_complete<const ARITY: usize>(functions: &[&dyn BoolFnExt<ARITY>]) -> bool {
functions.iter().any(|f| !f.is_falsity_preserving())
&& functions.iter().any(|f| !f.is_truth_preserving())
&& functions.iter().any(|f| !f.is_monotonic())
&& functions.iter().any(|f| !f.is_affine())
&& functions.iter().any(|f| !f.is_self_dual())
functions.iter().any(|&f| !f.is_falsity_preserving())
&& functions.iter().any(|&f| !f.is_truth_preserving())
&& functions.iter().any(|&f| !f.is_monotonic())
&& functions.iter().any(|&f| !f.is_affine())
&& functions.iter().any(|&f| !f.is_self_dual())
}

/// Tells whether the system of functions is functionally complete
Expand Down

0 comments on commit 632e92a

Please sign in to comment.