malachite_base/bools/constants.rs
1// Copyright © 2025 Mikhail Hogrefe
2//
3// This file is part of Malachite.
4//
5// Malachite is free software: you can redistribute it and/or modify it under the terms of the GNU
6// Lesser General Public License (LGPL) as published by the Free Software Foundation; either version
7// 3 of the License, or (at your option) any later version. See <https://www.gnu.org/licenses/>.
8
9use crate::comparison::traits::{Max, Min};
10use crate::named::Named;
11
12impl Min for bool {
13 /// The minimum value of a [`bool`]: `false`.
14 const MIN: bool = false;
15}
16
17impl Max for bool {
18 /// The maximum value of a [`bool`]: `true`.
19 const MAX: bool = true;
20}
21
22impl_named!(bool);