We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e88763 commit c756496Copy full SHA for c756496
src/lib.rs
@@ -67,7 +67,6 @@
67
#![allow(
68
clippy::needless_range_loop,
69
clippy::ptr_arg,
70
- clippy::len_without_is_empty,
71
clippy::map_entry,
72
clippy::type_complexity,
73
clippy::too_many_arguments,
src/linalg/mod.rs
@@ -76,6 +76,11 @@ pub trait BaseVector<T: RealNumber>: Clone + Debug {
76
/// Get number of elevemnt in the vector
77
fn len(&self) -> usize;
78
79
+ /// Returns true if the vector is empty.
80
+ fn is_empty(&self) -> bool {
81
+ self.len() == 0
82
+ }
83
+
84
/// Return a vector with the elements of the one-dimensional array.
85
fn to_vec(&self) -> Vec<T>;
86
0 commit comments