62 |
/// ```
|
63 |
#[allow(clippy::result_map_unit_fn)]
|
64 |
pub fn from_sign<S: AsRef<str>>(sign: S) -> Result<Cmp, ()> {
|
89 |
/// ```
|
90 |
#[allow(clippy::result_map_unit_fn)]
|
91 |
pub fn from_name<S: AsRef<str>>(sign: S) -> Result<Cmp, ()> {
|
27 |
/// ```
|
28 |
#[allow(clippy::result_map_unit_fn)]
|
29 |
pub fn compare<A, B>(a: A, b: B) -> Result<Cmp, ()>
|
54 |
/// ```
|
55 |
#[allow(clippy::result_map_unit_fn)]
|
56 |
pub fn compare_to<A, B>(a: A, b: B, operator: Cmp) -> Result<bool, ()>
|
189 |
/// ```
|
190 |
#[allow(clippy::result_map_unit_fn)]
|
191 |
pub fn part(&self, index: usize) -> Result<Part<'a>, ()> {
|
49 |
//! ```
|
50 |
#![allow(clippy::result_map_unit_fn)]
|