17 |
#[allow(clippy::len_without_is_empty)]
|
18 |
impl<A> MatrixRing<A>
|
17 |
#[allow(clippy::len_without_is_empty)]
|
18 |
impl<A> VectorAlgebra<A>
|
76 |
}
|
77 |
#[allow(clippy::len_without_is_empty)] // Array is never empty.
|
78 |
impl<T, M, A> Generic<T, M, A>
|
98 |
#[allow(clippy::len_without_is_empty)]
|
99 |
impl Tag {
|
82 |
#[allow(clippy::len_without_is_empty)]
|
83 |
impl FunctionChain {
|
41 |
/// FFT and input must be the same length
|
42 |
#[allow(clippy::len_without_is_empty)]
|
43 |
pub trait Fft {
|
283 |
#[must_use]
|
284 |
#[allow(clippy::len_without_is_empty)]
|
285 |
pub fn len(&self) -> usize {
|
161 |
#[must_use]
|
162 |
#[allow(clippy::len_without_is_empty)] // is_empty() would always be false
|
163 |
pub fn len(&self) -> usize {
|
238 |
#[must_use]
|
239 |
#[allow(clippy::len_without_is_empty)] // is_empty() would always be false
|
240 |
pub fn len(&self) -> usize {
|
115 |
#[allow(clippy::len_without_is_empty)]
|
116 |
impl<T> Row<T> {
|
37 |
/// For example, `[T]` implements this trait.
|
38 |
#[allow(clippy::len_without_is_empty)]
|
39 |
pub trait Seq {
|
651 |
#[inline]
|
652 |
#[allow(clippy::len_without_is_empty)]
|
653 |
pub fn len(&self) -> u16 { self.layout.bytes() }
|
208 |
}
|
209 |
#[allow(clippy::len_without_is_empty)]
|
210 |
pub trait Page {
|
280 |
}
|
281 |
#[allow(clippy::len_without_is_empty)]
|
282 |
impl<P> Reader<P>
|
103 |
/// This correspond to the number of likelihoods in the band.
|
104 |
#[allow(clippy::len_without_is_empty)]
|
105 |
pub fn len(&self) -> usize {
|
468 |
#[allow(clippy::len_without_is_empty)]
|
469 |
pub fn len(&self) -> usize {
|
107 |
/// [`Sequence`]: trait.Sequence.html
|
108 |
#[allow(clippy::len_without_is_empty)]
|
109 |
pub trait Bounded<T>: Sequence<T> {
|
390 |
#[inline]
|
391 |
#[allow(clippy::len_without_is_empty)]
|
392 |
pub fn len(&self) -> Result<usize> {
|
395 |
#[inline]
|
396 |
#[allow(clippy::len_without_is_empty)]
|
397 |
pub fn is_empty(&self) -> Result<bool> {
|
427 |
#[inline]
|
428 |
#[allow(clippy::len_without_is_empty)]
|
429 |
pub fn is_empty(&self) -> Result<bool> {
|
432 |
#[inline]
|
433 |
#[allow(clippy::len_without_is_empty)]
|
434 |
pub fn len(&self) -> Result<usize> {
|
1764 |
#[inline]
|
1765 |
#[allow(clippy::len_without_is_empty)]
|
1766 |
pub const fn len(mut self, n: usize) -> Self {
|
877 |
#[allow(clippy::len_without_is_empty)]
|
878 |
impl Projection {
|
953 |
#[allow(clippy::len_without_is_empty)]
|
954 |
impl Selection {
|
266 |
/// Number of entries.
|
267 |
#[allow(clippy::len_without_is_empty)]
|
268 |
pub fn len(&self) -> u32 {
|
60 |
/// [20671]: https://github.com/rust-lang/rust/issues/20671
|
61 |
#[allow(clippy::len_without_is_empty)]
|
62 |
pub trait IndexedProducer: WithSetup + Send + Sized {
|
77 |
/// ```
|
78 |
#[allow(clippy::len_without_is_empty)] // ExactSizeIterator::is_empty is unstable
|
79 |
#[cfg(feature = "unstable")]
|
212 |
///
|
213 |
#[allow(clippy::len_without_is_empty)]
|
214 |
pub fn len(&self) -> u32 {
|
206 |
/// Trait used to verify the [`SpiFuture`] buffer length
|
207 |
#[allow(clippy::len_without_is_empty)]
|
208 |
pub trait CheckBufLen: AnySpi {
|
30 |
/// Gets the number of active connections managed by it.
|
31 |
#[allow(clippy::len_without_is_empty)]
|
32 |
pub fn len(&self) -> usize {
|
38 |
#[allow(clippy::len_without_is_empty)]
|
39 |
impl LineEnding {
|
3396 |
/// Returns the number of elements in an [`Index`](enum.Index.html).
|
3397 |
#[allow(clippy::len_without_is_empty)]
|
3398 |
pub fn len(&self, count: usize) -> Result<usize, BedErrorPlus> {
|
15 |
#[allow(clippy::len_without_is_empty)]
|
16 |
impl AliasAddress {
|
15 |
#[allow(clippy::len_without_is_empty)]
|
16 |
impl NftAddress {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl Parents {
|
22 |
#[allow(clippy::len_without_is_empty)]
|
23 |
impl Ed25519Address {
|
34 |
#[allow(clippy::len_without_is_empty)]
|
35 |
impl Parents {
|
8 |
/// A trait to be implemented by alternative trit encoding scheme slices.
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
#[allow(clippy::missing_safety_doc)]
|
18 |
// invariant.
|
19 |
#[allow(clippy::len_without_is_empty)]
|
20 |
impl Call {
|
416 |
// PnBlocks can't have zero length, so `is_empty` is unnecessary
|
417 |
#[allow(clippy::len_without_is_empty)]
|
418 |
impl PnBlock {
|
115 |
/// Equivalent of [`Assets::len`]
|
116 |
#[allow(clippy::len_without_is_empty)] // clippy expects the `is_empty` method to have the signature `(&self) -> bool`
|
117 |
pub fn len(&self, world: &World) -> usize {
|
113 |
/// Saves you from a lookup into `Asset<TextureAtlas>`.
|
114 |
#[allow(clippy::len_without_is_empty)]
|
115 |
pub fn len<B: std::borrow::Borrow<T>>(&self, index: B) -> usize {
|
339 |
#[allow(clippy::len_without_is_empty)] // Check fails since the is_empty implementation has a signature other than `(&self) -> bool`
|
340 |
impl<E: Event> ManualEventReader<E> {
|
56 |
/// Trait for streams that can seek.
|
57 |
#[allow(clippy::len_without_is_empty)]
|
58 |
pub trait SeekStream {
|
405 |
#[allow(clippy::len_without_is_empty)] // VarInt has on concept of 'is_empty'.
|
406 |
impl VarInt {
|
8 |
/// eg `TxOuts(&[0u8])` is considered empty because there are no tx outputs but is not an empty slice.
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
pub trait Parse<'a>: Sized + AsRef<[u8]> {
|
22 |
/// while consuming the slice it calls methods on the provided visitor.
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
pub trait Visit<'a>: Sized + AsRef<[u8]> {
|
405 |
#[allow(clippy::len_without_is_empty)] // VarInt has on concept of 'is_empty'.
|
406 |
impl VarInt {
|
52 |
/// [`BitString::len()`](bit_string/trait.BitString.html#tymethod.len))
|
53 |
#[allow(clippy::len_without_is_empty)]
|
54 |
pub fn len(&self) -> usize {
|
22 |
/// bits or change the length.
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
pub trait BitString {
|
48 |
/// Current length of the bit string in bits.
|
49 |
#[allow(clippy::len_without_is_empty)]
|
50 |
fn len(&self) -> usize;
|
596 |
}
|
597 |
#[allow(clippy::len_without_is_empty)]
|
598 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
59 |
#[allow(clippy::len_without_is_empty)]
|
60 |
pub fn len(&self) -> u8 {
|
17 |
#[allow(clippy::len_without_is_empty)]
|
18 |
impl<'a> Deriver<'a> {
|
93 |
#[allow(clippy::len_without_is_empty)]
|
94 |
impl<'a> Signer<'a> {
|
11 |
#[allow(clippy::len_without_is_empty)]
|
12 |
pub trait BMByteSearchable {
|
10 |
#[allow(clippy::len_without_is_empty)]
|
11 |
pub trait BMCharacterSearchable {
|
18 |
#[allow(clippy::len_without_is_empty)]
|
19 |
impl FreePortion {
|
24 |
#[allow(clippy::len_without_is_empty)]
|
25 |
impl Metadata {
|
206 |
#[allow(clippy::len_without_is_empty)]
|
207 |
impl<'a> Insn<'a> {
|
69 |
/// ```
|
70 |
#[allow(clippy::len_without_is_empty)]
|
71 |
pub trait Packet {
|
81 |
#[allow(clippy::len_without_is_empty)]
|
82 |
impl VarInt {
|
63 |
/// Gets the maximum len of the associated one-dimensional axis.
|
64 |
#[allow(clippy::len_without_is_empty)]
|
65 |
#[inline]
|
51 |
///
|
52 |
#[allow(clippy::len_without_is_empty)]
|
53 |
#[inline]
|
590 |
}
|
591 |
#[allow(clippy::len_without_is_empty)]
|
592 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
590 |
}
|
591 |
#[allow(clippy::len_without_is_empty)]
|
592 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
590 |
}
|
591 |
#[allow(clippy::len_without_is_empty)]
|
592 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
13 |
#[allow(clippy::len_without_is_empty)]
|
14 |
impl Parameters {
|
217 |
/// The batch size of this view.
|
218 |
#[allow(clippy::len_without_is_empty)]
|
219 |
pub fn len(&self) -> usize {
|
739 |
/// Returns the number of [`Gene`]s in the `Network`.
|
740 |
#[allow(clippy::len_without_is_empty)]
|
741 |
pub fn len(&self) -> usize {
|
427 |
#[allow(clippy::len_without_is_empty)]
|
428 |
/// Returns the length of this hunk in bytes.
|
481 |
/// Returns the length of the header.
|
482 |
#[allow(clippy::len_without_is_empty)]
|
483 |
pub fn len(&self) -> u32 {
|
299 |
/// Gets the number of entries in the CHD Map.
|
300 |
#[allow(clippy::len_without_is_empty)]
|
301 |
pub fn len(&self) -> usize {
|
20 |
#[allow(clippy::len_without_is_empty)]
|
21 |
impl Match {
|
21 |
/// See [`Parser::chain`](super::Parser).
|
22 |
#[allow(clippy::len_without_is_empty)]
|
23 |
pub trait Chain<T>: private::Sealed<T> {
|
17 |
/// The length of an address (as bitstring) in the given family
|
18 |
#[allow(clippy::len_without_is_empty)]
|
19 |
pub fn len(&self) -> u8 {
|
168 |
/// Returns the number of StackedRatchets internally
|
169 |
#[allow(clippy::len_without_is_empty)]
|
170 |
pub fn len(&self) -> usize {
|
55 |
#[allow(clippy::len_without_is_empty)]
|
56 |
pub trait EzBuffer: AsRef<[u8]> + AsMut<[u8]> + BufMut {
|
140 |
#[inline]
|
141 |
#[allow(clippy::len_without_is_empty)]
|
142 |
pub fn len(&self) -> usize {
|
73 |
/// ```
|
74 |
#[allow(clippy::len_without_is_empty)]
|
75 |
#[inline]
|
180 |
#[allow(clippy::len_without_is_empty)]
|
181 |
/// Returns the length of the range
|
122 |
#[allow(clippy::len_without_is_empty)]
|
123 |
impl Sentence {
|
364 |
#[allow(clippy::len_without_is_empty)]
|
365 |
impl<'a> DepGraph<'a> {
|
430 |
#[allow(clippy::len_without_is_empty)]
|
431 |
impl<'a> DepGraphMut<'a> {
|
65 |
#[allow(clippy::len_without_is_empty)] // no use case for an emptiness check
|
66 |
impl<T: Ord, RefObj: SequentialSpec> LinearizabilityTester<T, RefObj> {
|
53 |
#[allow(clippy::len_without_is_empty)] // no use case for an emptiness check
|
54 |
impl<T: Ord, RefObj: SequentialSpec> SequentialConsistencyTester<T, RefObj> {
|
89 |
#[allow(clippy::len_without_is_empty)]
|
90 |
impl ObjectIdentifier {
|
602 |
}
|
603 |
#[allow(clippy::len_without_is_empty)]
|
604 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
502 |
#[allow(clippy::len_without_is_empty)]
|
503 |
impl Data {
|
160 |
/// Implement this trait for type to unlock all the sorting methods in Go standard library.
|
161 |
#[allow(clippy::len_without_is_empty)]
|
162 |
pub trait Sort {
|
101 |
/// or a regular [`DeviceBuffer`].
|
102 |
#[allow(clippy::len_without_is_empty)]
|
103 |
pub trait GpuBuffer<T: DeviceCopy>: private::Sealed {
|
197 |
// it. Must be a clippy bug...
|
198 |
#[allow(clippy::len_without_is_empty)]
|
199 |
pub fn len(&self) -> usize {
|
94 |
/// Gets the length of the deque.
|
95 |
#[allow(clippy::len_without_is_empty)]
|
96 |
pub fn len(&self, storage: &dyn Storage) -> StdResult<u32> {
|
649 |
}
|
650 |
#[allow(clippy::len_without_is_empty)]
|
651 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
15 |
#[allow(clippy::len_without_is_empty)]
|
16 |
impl<'i> ExpectedLength<'i> {
|
227 |
/// Error instance methods
|
228 |
#[allow(clippy::len_without_is_empty)] // Error can never be empty
|
229 |
impl Error {
|
187 |
/// interrupt source as a distinct InterruptSource.
|
188 |
#[allow(clippy::len_without_is_empty)]
|
189 |
pub trait InterruptSourceGroup: Send + Sync {
|
58 |
#[inline(always)]
|
59 |
#[allow(clippy::len_without_is_empty)]
|
60 |
pub fn len(&self) -> usize {
|
1043 |
#[must_use]
|
1044 |
#[allow(clippy::len_without_is_empty)] // that's impossible
|
1045 |
pub fn len(self, block_size: usize) -> usize {
|
55 |
/// A trait for a data type containing a DICOM header.
|
56 |
#[allow(clippy::len_without_is_empty)]
|
57 |
pub trait Header: HasLength {
|
134 |
#[allow(
|
135 |
clippy::len_without_is_empty,
|
136 |
clippy::new_without_default,
|
70 |
/// Returns the length of the key
|
71 |
#[allow(clippy::len_without_is_empty)]
|
72 |
pub fn len(&self) -> usize {
|
151 |
/// Returns the length of the key
|
152 |
#[allow(clippy::len_without_is_empty)]
|
153 |
pub fn len(&self) -> usize {
|
20 |
#[allow(clippy::len_without_is_empty)]
|
21 |
impl TransducerHeader {
|
30 |
#[allow(clippy::len_without_is_empty)]
|
31 |
impl MappedIndexTable {
|
632 |
#[allow(clippy::len_without_is_empty)]
|
633 |
impl OctetString {
|
28 |
/// [`ToRelativeDname`]: trait ToRelativeDname.html
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
pub trait ToLabelIter<'a> {
|
470 |
#[allow(clippy::len_without_is_empty)]
|
471 |
impl OptionHeader {
|
102 |
#[allow(clippy::len_without_is_empty)] // Segments should never be zero length
|
103 |
impl Segment {
|
166 |
#[allow(clippy::len_without_is_empty)]
|
167 |
impl Selection {
|
90 |
/// Everything implementing `Queue` can be handled by DynQueue
|
91 |
#[allow(clippy::len_without_is_empty)]
|
92 |
pub trait Queue<T>
|
66 |
#[allow(clippy::len_without_is_empty)]
|
67 |
impl<C> Signature<C>
|
73 |
#[allow(clippy::len_without_is_empty)]
|
74 |
impl<C> Signature<C>
|
29 |
/// See [`SymbolLang`] for quick-and-dirty use cases.
|
30 |
#[allow(clippy::len_without_is_empty)]
|
31 |
pub trait Language: Debug + Clone + Eq + Ord + Hash {
|
77 |
#[allow(clippy::len_without_is_empty)]
|
78 |
pub trait CacheTrait: 'static + Send + Sync {
|
307 |
#[allow(clippy::len_without_is_empty)] // `is_empty()` would always be false
|
308 |
impl<G: Group, S: ProveSum<G>> EncryptedChoice<G, S> {
|
28 |
#[allow(clippy::len_without_is_empty)]
|
29 |
pub fn len(&self) -> usize {
|
252 |
#[allow(clippy::len_without_is_empty)]
|
253 |
pub fn len(&self) -> usize {
|
320 |
#[allow(clippy::len_without_is_empty)]
|
321 |
pub fn len(&self) -> usize {
|
360 |
#[allow(clippy::len_without_is_empty)]
|
361 |
pub fn len(&self) -> usize {
|
53 |
#[allow(clippy::len_without_is_empty)]
|
54 |
pub fn len(&self) -> usize {
|
55 |
#[allow(clippy::len_without_is_empty)]
|
56 |
impl<C> EncodedPoint<C>
|
29 |
/// Return the length of the partition
|
30 |
#[allow(clippy::len_without_is_empty)]
|
31 |
pub const fn len(&self) -> usize {
|
149 |
#[allow(clippy::len_without_is_empty)]
|
150 |
pub trait BufferRef {
|
219 |
#[allow(clippy::len_without_is_empty)]
|
220 |
pub trait RuntimeSizedArray {
|
262 |
#[allow(clippy::len_without_is_empty)]
|
263 |
impl<K: EnumArray<V>, V> EnumMap<K, V> {
|
384 |
#[allow(clippy::len_without_is_empty)]
|
385 |
impl<T> TypeDefArray<T>
|
12 |
/// `Self` and `Self::Raw` must be safely transmutable to each other.
|
13 |
#[allow(clippy::len_without_is_empty)]
|
14 |
pub unsafe trait Request: Send + 'static {
|
146 |
/// Should be implemented only for types that represented in memory as [Self::Item].
|
147 |
#[allow(clippy::len_without_is_empty)]
|
148 |
pub unsafe trait Value: Send + 'static {
|
98 |
/// Note that the result will never be less than `3`.
|
99 |
#[allow(clippy::len_without_is_empty)]
|
100 |
pub fn len(&self) -> usize {
|
649 |
}
|
650 |
#[allow(clippy::len_without_is_empty)]
|
651 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
649 |
}
|
650 |
#[allow(clippy::len_without_is_empty)]
|
651 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
649 |
}
|
650 |
#[allow(clippy::len_without_is_empty)]
|
651 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
649 |
}
|
650 |
#[allow(clippy::len_without_is_empty)]
|
651 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
649 |
}
|
650 |
#[allow(clippy::len_without_is_empty)]
|
651 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
54 |
// on the alias `ZendStr` :( <https://github.com/rust-lang/rust-clippy/issues/7702>
|
55 |
#[allow(clippy::len_without_is_empty)]
|
56 |
impl ZendHashTable {
|
47 |
// on the alias `ZendStr` :( <https://github.com/rust-lang/rust-clippy/issues/7702>
|
48 |
#[allow(clippy::len_without_is_empty)]
|
49 |
impl ZendStr {
|
24 |
#[allow(clippy::len_without_is_empty)]
|
25 |
impl<'lua> Table<'lua> {
|
1018 |
#[allow(clippy::len_without_is_empty)] // follow regex's API
|
1019 |
impl<'t> Captures<'t> {
|
330 |
#[allow(clippy::len_without_is_empty)]
|
331 |
impl Vu64 {
|
512 |
// empty `QualifiedIdent`.
|
513 |
#[allow(clippy::len_without_is_empty)]
|
514 |
impl<'a> QualifiedIdent<'a> {
|
14 |
/// simple trait to add a `.len()` equivalent to implementors
|
15 |
#[allow(clippy::len_without_is_empty)]
|
16 |
pub trait Len {
|
202 |
#[allow(clippy::len_without_is_empty)]
|
203 |
pub fn len(&self) -> u64 {
|
22 |
/// Embedding vocabularies.
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
pub trait Vocab {
|
124 |
#[allow(clippy::len_without_is_empty)]
|
125 |
impl<V, S> Embeddings<V, S>
|
221 |
/// A mapped segment in a shared library.
|
222 |
#[allow(clippy::len_without_is_empty)]
|
223 |
pub trait Segment: Sized + Debug {
|
353 |
/// A trait representing a shared library that is loaded in this process.
|
354 |
#[allow(clippy::len_without_is_empty)]
|
355 |
pub trait SharedLibrary: Sized + Debug {
|
37 |
#[allow(clippy::len_without_is_empty)]
|
38 |
#[allow(clippy::from_over_into)] // TODO(caspern): Go from From to Into.
|
61 |
#[inline]
|
62 |
#[allow(clippy::len_without_is_empty)]
|
63 |
pub fn len(&self) -> u64 {
|
37 |
#[allow(clippy::len_without_is_empty)]
|
38 |
impl Addresses {
|
31 |
#[allow(clippy::len_without_is_empty)]
|
32 |
impl FileRecordSet {
|
37 |
#[allow(clippy::len_without_is_empty)]
|
38 |
impl<R> FileBatchPos<R>
|
114 |
// This type is only used in forma where it does not need `is_empty`.
|
115 |
#[allow(clippy::len_without_is_empty)]
|
116 |
#[inline]
|
756 |
/// Get the length of this file, in bytes.
|
757 |
#[allow(clippy::len_without_is_empty)]
|
758 |
#[inline]
|
756 |
/// Get the length of this file, in bytes.
|
757 |
#[allow(clippy::len_without_is_empty)]
|
758 |
#[inline]
|
30 |
#[allow(clippy::len_without_is_empty)]
|
31 |
pub fn len(&self) -> usize {
|
255 |
#[allow(clippy::len_without_is_empty)] // We don't need it.
|
256 |
/// ## Individual Parts.
|
169 |
#[allow(clippy::len_without_is_empty)]
|
170 |
impl Tree {
|
251 |
#[allow(clippy::len_without_is_empty)]
|
252 |
impl<'a> Transaction<'a> {
|
72 |
impl AArch64RegId {
|
73 |
#[allow(clippy::len_without_is_empty)]
|
74 |
/// Gives the size of the register.
|
34 |
/// This trait is sealed and has no public members.
|
35 |
#[allow(clippy::len_without_is_empty)]
|
36 |
pub unsafe trait Guard: private::Sealed {
|
298 |
#[allow(clippy::len_without_is_empty)]
|
299 |
impl<'a, V> Overlapping<'a, V>
|
360 |
#[allow(clippy::len_without_is_empty)]
|
361 |
impl<'a, V> OverlappingMut<'a, V>
|
109 |
#[allow(clippy::len_without_is_empty)]
|
110 |
impl CIGARPair {
|
1736 |
/// other signal-unsafe operations.
|
1737 |
#[allow(clippy::len_without_is_empty)]
|
1738 |
impl<R: Reader> FrameDescriptionEntry<R> {
|
9 |
/// All write operations append to the section unless otherwise specified.
|
10 |
#[allow(clippy::len_without_is_empty)]
|
11 |
pub trait Writer {
|
479 |
#[allow(clippy::len_without_is_empty)]
|
480 |
impl<T> LocalSender<T> {
|
512 |
#[inline(always)]
|
513 |
#[allow(clippy::len_without_is_empty)]
|
514 |
pub unsafe fn len(&self, index: i32) -> i32 {
|
31 |
/// Violating any of these invariants results in panic in debug builds.
|
32 |
#[allow(clippy::len_without_is_empty)]
|
33 |
pub struct Population<F: Problem>
|
244 |
#[allow(clippy::len_without_is_empty)]
|
245 |
impl Data {
|
81 |
#[allow(clippy::len_without_is_empty)]
|
82 |
pub trait UnionFind<NI> {
|
46 |
#[allow(clippy::len_without_is_empty)]
|
47 |
pub trait Edges {
|
52 |
impl Line {
|
53 |
#[allow(clippy::len_without_is_empty)] //use start()==end() to check that
|
54 |
#[inline]
|
1417 |
#[allow(clippy::len_without_is_empty)]
|
1418 |
impl<'a, T> MagickWandExportSlice<'a, T>
|
3353 |
#[allow(clippy::len_without_is_empty)]
|
3354 |
impl<'a, T> MagickWandImportSlice<'a, T>
|
405 |
#[allow(clippy::len_without_is_empty)] // VarInt has on concept of 'is_empty'.
|
406 |
impl VarInt {
|
77 |
/// Get points count(rolling dice times)
|
78 |
#[allow(clippy::len_without_is_empty)] // because it can't be empty
|
79 |
#[must_use]
|
118 |
// Total length (in frames) of the command
|
119 |
#[allow(clippy::len_without_is_empty)]
|
120 |
pub fn len(&self) -> usize {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl HciSocketAddr {
|
157 |
#[allow(clippy::len_without_is_empty)]
|
158 |
impl PropertyList {
|
53 |
/// Keep the same style with `std::fs::File`
|
54 |
#[allow(clippy::len_without_is_empty)]
|
55 |
pub fn len(&self) -> u64 {
|
42 |
#[allow(clippy::len_without_is_empty)]
|
43 |
impl KeyPath {
|
171 |
// Components are not allowed to be empty
|
172 |
#[allow(clippy::len_without_is_empty)]
|
173 |
impl<'a> Component<'a> {
|
612 |
// chain. This needs to be fixed.
|
613 |
#[allow(clippy::len_without_is_empty)]
|
614 |
pub fn len(&self) -> SourceChainResult<u32> {
|
209 |
#[allow(clippy::len_without_is_empty)]
|
210 |
pub fn len(&self) -> u64 {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl ContentLength {
|
40 |
#[allow(clippy::len_without_is_empty)]
|
41 |
impl RetryAfter {
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
impl Header {
|
272 |
#[allow(clippy::len_without_is_empty)]
|
273 |
impl Pseudo {
|
58 |
#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
|
59 |
impl ibv_wc {
|
76 |
#[allow(clippy::len_without_is_empty)]
|
77 |
impl Instruction {
|
42 |
/// The number of elements in this list
|
43 |
#[allow(clippy::len_without_is_empty)] // don't need to follow Rust conventions over FFI
|
44 |
pub fn len(&self) -> usize {
|
132 |
/// Returns the number of elements in the collection.
|
133 |
#[allow(clippy::len_without_is_empty)]
|
134 |
pub fn len(&self) -> usize {
|
199 |
/// Get the number of elements in the list.
|
200 |
#[allow(clippy::len_without_is_empty)]
|
201 |
pub fn len(&self, pool: &ListPool) -> u32 {
|
17 |
#[allow(clippy::len_without_is_empty)]
|
18 |
impl DynImage {
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
impl Jpeg {
|
21 |
#[allow(clippy::len_without_is_empty)]
|
22 |
impl JpegSegment {
|
19 |
#[allow(clippy::len_without_is_empty)]
|
20 |
impl PngChunk {
|
25 |
#[allow(clippy::len_without_is_empty)]
|
26 |
impl Png {
|
31 |
#[allow(clippy::len_without_is_empty)]
|
32 |
impl RiffChunk {
|
123 |
#[allow(clippy::len_without_is_empty)]
|
124 |
impl RiffContent {
|
36 |
#[allow(clippy::len_without_is_empty)]
|
37 |
impl WebP {
|
170 |
/// Implement this trait for type to unlock all the sorting methods in Go standard library.
|
171 |
#[allow(clippy::len_without_is_empty)]
|
172 |
pub trait IndexSort {
|
305 |
#[allow(clippy::len_without_is_empty)]
|
306 |
pub fn len(&self) -> Option<u64> {
|
101 |
#[allow(clippy::len_without_is_empty)]
|
102 |
impl NullBackend {
|
285 |
// is_empty is defined in the generic impl block above
|
286 |
#[allow(clippy::len_without_is_empty)]
|
287 |
impl MetadataValue<Ascii> {
|
413 |
#[allow(clippy::len_without_is_empty)]
|
414 |
impl<F> ArrayLayout<F>
|
39 |
#[allow(clippy::len_without_is_empty)]
|
40 |
pub trait Spi {
|
34 |
#[allow(clippy::len_without_is_empty)]
|
35 |
impl Metadata {
|
234 |
/// Returns the entry len.
|
235 |
#[allow(clippy::len_without_is_empty)]
|
236 |
pub fn len(&self) -> u32 {
|
9 |
// SymbolTable instances always have at least system symbols; they are never empty.
|
10 |
#[allow(clippy::len_without_is_empty)]
|
11 |
pub struct SymbolTable {
|
8 |
/// A trait to be implemented by alternative trit encoding scheme slices.
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
#[allow(clippy::missing_safety_doc)]
|
15 |
#[allow(clippy::len_without_is_empty)]
|
16 |
impl AliasAddress {
|
15 |
#[allow(clippy::len_without_is_empty)]
|
16 |
impl NftAddress {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl Parents {
|
572 |
}
|
573 |
#[allow(clippy::len_without_is_empty)]
|
574 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
175 |
/// Provided implementations: `[T]`, `Vec<T>`.
|
176 |
#[allow(clippy::len_without_is_empty)]
|
177 |
#[autoimpl(for<T: trait + ?Sized> &T, &mut T, std::rc::Rc<T>, std::sync::Arc<T>, Box<T>)]
|
12 |
#[allow(clippy::len_without_is_empty)]
|
13 |
impl MMap {
|
79 |
/// Returns the number of progress bars.
|
80 |
#[allow(clippy::len_without_is_empty)]
|
81 |
pub fn len(&self) -> usize {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl Metadata {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl Header {
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
impl Glyphs {
|
55 |
// This list is always non-empty
|
56 |
#[allow(clippy::len_without_is_empty)]
|
57 |
impl AreaList {
|
5 |
/// Adapter trait for accessing different types of arrays
|
6 |
#[allow(clippy::len_without_is_empty)]
|
7 |
pub trait ArrayAdapter<N> {
|
200 |
#[allow(clippy::len_without_is_empty)]
|
201 |
impl<N, E> Krates<N, E> {
|
14 |
#[allow(clippy::len_without_is_empty)]
|
15 |
impl Domain {
|
76 |
#[allow(clippy::len_without_is_empty)]
|
77 |
impl Format {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl Su3Adjoint {
|
708 |
impl DirEntry {
|
709 |
#[allow(clippy::len_without_is_empty)]
|
710 |
pub fn len(&self) -> usize {
|
80 |
#[allow(clippy::len_without_is_empty)]
|
81 |
pub fn len(&self) -> u32 {
|
297 |
/// Return the size of the file.
|
298 |
#[allow(clippy::len_without_is_empty)]
|
299 |
pub fn len(&self) -> u64 {
|
32 |
/// Obtaining the length of the collection must take a constant amount of time and space.
|
33 |
#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
|
34 |
// TODO: https://github.com/Manishearth/rust-clippy/issues/1740
|
40 |
#[allow(clippy::len_without_is_empty)]
|
41 |
impl Input {
|
26 |
#[allow(clippy::len_without_is_empty)]
|
27 |
impl MainInput {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl ProgramInput {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl PrivateState {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl ProgramState {
|
28 |
#[allow(clippy::len_without_is_empty)]
|
29 |
impl PublicState {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl ContentLength {
|
40 |
#[allow(clippy::len_without_is_empty)]
|
41 |
impl RetryAfter {
|
277 |
/// response length.
|
278 |
#[allow(clippy::len_without_is_empty)]
|
279 |
pub fn len(&self) -> Option<usize> {
|
163 |
/// response length.
|
164 |
#[allow(clippy::len_without_is_empty)]
|
165 |
pub fn len(&self) -> Option<usize> {
|
406 |
/// Get the length of this file, in bytes.
|
407 |
#[allow(clippy::len_without_is_empty)]
|
408 |
#[inline]
|
44 |
#[inline(always)]
|
45 |
#[allow(clippy::len_without_is_empty)]
|
46 |
pub const fn len(self) -> u8 {
|
31 |
#[allow(clippy::len_without_is_empty)]
|
32 |
impl Addresses {
|
753 |
#[allow(clippy::len_without_is_empty)]
|
754 |
pub fn len<R>(&self, seqlocs: &mut SeqLocs, mut in_buf: &mut R, block_size: u32) -> usize
|
100 |
/// Calculates length of serialized BigSize type
|
101 |
#[allow(clippy::len_without_is_empty)]
|
102 |
pub fn len(self) -> usize {
|
35 |
/// Http header, take two references
|
36 |
#[allow(clippy::len_without_is_empty)]
|
37 |
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
|
4 |
#[allow(clippy::len_without_is_empty)]
|
5 |
pub trait BufferLike<T: Attribute> {
|
56 |
#[allow(clippy::len_without_is_empty)]
|
57 |
impl NacpFile {
|
171 |
#[allow(clippy::len_without_is_empty)]
|
172 |
impl RomFs {
|
42 |
/// does not change.
|
43 |
#[allow(clippy::len_without_is_empty)]
|
44 |
pub fn len(&self) -> usize {
|
87 |
impl HashAlgo {
|
88 |
#[allow(clippy::len_without_is_empty)]
|
89 |
pub fn len(self) -> u8 {
|
1079 |
#[inline(always)]
|
1080 |
#[allow(clippy::len_without_is_empty)]
|
1081 |
#[must_use]
|
112 |
#[allow(clippy::len_without_is_empty)]
|
113 |
impl<'a> LogFile<'a> {
|
43 |
// It doesn't make sense for State to be empty;
|
44 |
#[allow(clippy::len_without_is_empty)]
|
45 |
impl State {
|
217 |
// The graph always contains OFF and ON.
|
218 |
#[allow(clippy::len_without_is_empty)]
|
219 |
impl GateGraphBuilder {
|
62 |
// The graph always contains OFF and ON.
|
63 |
#[allow(clippy::len_without_is_empty)]
|
64 |
impl InitializedGateGraph {
|
457 |
#[allow(clippy::len_without_is_empty)]
|
458 |
pub fn len(&self) -> usize {
|
44 |
#[inline(always)]
|
45 |
#[allow(clippy::len_without_is_empty)]
|
46 |
pub const fn len(self) -> u8 {
|
252 |
/// Returns the size of the file, in bytes, this metadata is for.
|
253 |
#[allow(clippy::len_without_is_empty)]
|
254 |
pub fn len(&self) -> u64 {
|
101 |
#[allow(clippy::len_without_is_empty)]
|
102 |
impl Buffer {
|
133 |
#[allow(clippy::len_without_is_empty)]
|
134 |
impl DeviceMemory {
|
1726 |
impl<'x> PartType<'x> {
|
1727 |
#[allow(clippy::len_without_is_empty)]
|
1728 |
pub fn len(&self) -> usize {
|
137 |
#[allow(clippy::len_without_is_empty)]
|
138 |
#[inline(always)]
|
12 |
#[allow(clippy::len_without_is_empty)]
|
13 |
impl Swizzle {
|
37 |
#[allow(clippy::len_without_is_empty)]
|
38 |
impl<T> Range<T>
|
554 |
#[allow(clippy::len_without_is_empty)]
|
555 |
impl<K: Ord, V> BTreeMap1<K, V> {
|
689 |
/// ```
|
690 |
#[allow(clippy::len_without_is_empty)]
|
691 |
pub fn len(&self) -> NonZeroUsize {
|
54 |
/// simultaneously.
|
55 |
#[allow(clippy::len_without_is_empty)]
|
56 |
pub trait ORAMStorage<BlockSize: ArrayLength<u8>, MetaSize: ArrayLength<u8>> {
|
115 |
/// We don't have a good way for the OMAP to take advantage of that right now.
|
116 |
#[allow(clippy::len_without_is_empty)]
|
117 |
#[allow(clippy::upper_case_acronyms)]
|
184 |
/// TODO: API for resizing it? Changing height?
|
185 |
#[allow(clippy::len_without_is_empty)]
|
186 |
pub trait PositionMap {
|
140 |
#[inline]
|
141 |
#[allow(clippy::len_without_is_empty)]
|
142 |
pub fn len(&self) -> usize {
|
24 |
/// Trait for generalizing static & dynamic memory patterns.
|
25 |
#[allow(clippy::len_without_is_empty)]
|
26 |
pub trait Matcher: sealed::Sealed {
|
3 |
#[allow(clippy::len_without_is_empty)]
|
4 |
pub trait Memory
|
104 |
/// Returns the length of the node's children, or `None` if the node has no children.
|
105 |
#[allow(clippy::len_without_is_empty)]
|
106 |
pub fn len(&self, node: NodeId) -> Option<usize> {
|
106 |
/// Returns the length of the node's children, or `None` if the node has no children.
|
107 |
#[allow(clippy::len_without_is_empty)]
|
108 |
pub fn len(&self, node: NodeId) -> Option<usize> {
|
432 |
#[allow(clippy::len_without_is_empty)]
|
433 |
impl Value {
|
27 |
#[allow(clippy::len_without_is_empty, dead_code)]
|
28 |
impl KeynumSK {
|
25 |
#[allow(clippy::len_without_is_empty)]
|
26 |
impl<'lua> Table<'lua> {
|
1037 |
/// Get the length of the array.
|
1038 |
#[allow(clippy::len_without_is_empty)]
|
1039 |
pub const fn len(&self) -> usize {
|
81 |
/// 文字数を返す。
|
82 |
#[allow(clippy::len_without_is_empty)]
|
83 |
pub fn len(&self) -> usize {
|
207 |
/// バイト数を返す。
|
208 |
#[allow(clippy::len_without_is_empty)]
|
209 |
pub fn len(&self) -> usize {
|
26 |
#[allow(clippy::len_without_is_empty)]
|
27 |
pub fn len(&self) -> usize {
|
97 |
#[allow(clippy::len_without_is_empty)]
|
98 |
impl CommandList {
|
733 |
}
|
734 |
#[allow(clippy::len_without_is_empty)]
|
735 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
1 |
//! Functionality around proof-of-work chains.
|
2 |
#[allow(clippy::len_without_is_empty)]
|
3 |
#[allow(clippy::collapsible_if)]
|
8 |
/// Cachable block filter.
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
pub trait Filter: Eq + PartialEq {
|
68 |
#[allow(clippy::len_without_is_empty)]
|
69 |
pub fn len(&self) -> u32 {
|
62 |
// https://github.com/rust-ndarray/ndarray/pull/642#discussion_r296051702
|
63 |
#[allow(clippy::len_without_is_empty)]
|
64 |
impl AxisDescription {
|
46 |
#[allow(clippy::len_without_is_empty)]
|
47 |
impl<K, V> LegacyTreeMap<K, V>
|
64 |
#[allow(clippy::len_without_is_empty)]
|
65 |
pub fn len(&self) -> u64 {
|
21 |
/// needs to be implemented this way.
|
22 |
#[allow(clippy::len_without_is_empty)]
|
23 |
impl NetlinkBitArray {
|
246 |
/// Returns the number of elements of type `T` in the region.
|
247 |
#[allow(clippy::len_without_is_empty)]
|
248 |
pub fn len(&self) -> usize {
|
773 |
/// ```
|
774 |
#[allow(clippy::len_without_is_empty)]
|
775 |
pub fn len<'cx, C>(&self, cx: &mut C) -> usize
|
541 |
#[allow(clippy::len_without_is_empty)]
|
542 |
pub fn len<'a, C: Context<'a>>(&self, cx: &mut C) -> u32 {
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
impl ContentLength {
|
26 |
#[allow(clippy::len_without_is_empty)]
|
27 |
impl<'g> Dimension<'g> {
|
56 |
#[allow(clippy::len_without_is_empty)]
|
57 |
impl<'g> Variable<'g> {
|
27 |
#[allow(clippy::len_without_is_empty)]
|
28 |
pub mod security_ctx;
|
913 |
#[allow(clippy::len_without_is_empty)] // RunStatuses is never empty
|
914 |
impl ExecutionStatuses {
|
1100 |
/// inner type read-only.
|
1101 |
#[allow(clippy::len_without_is_empty)]
|
1102 |
pub trait SockaddrLike: private::SockaddrLikePriv {
|
25 |
#[allow(clippy::len_without_is_empty)] // is_empty would always returns false so it seems a bit silly to have it.
|
26 |
impl NonEmptyString {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl Block {
|
18 |
#[allow(clippy::len_without_is_empty)]
|
19 |
impl Header {
|
20 |
#[allow(clippy::len_without_is_empty)]
|
21 |
impl Record {
|
21 |
#[allow(clippy::len_without_is_empty)]
|
22 |
impl Record {
|
47 |
/// ```
|
48 |
#[allow(clippy::len_without_is_empty)]
|
49 |
pub fn len(&self) -> usize {
|
48 |
#[allow(clippy::len_without_is_empty)] // never empty
|
49 |
impl LayerSet {
|
101 |
/// This is always non-zero.
|
102 |
#[allow(clippy::len_without_is_empty)]
|
103 |
pub fn len(&self) -> usize {
|
361 |
#[allow(clippy::len_without_is_empty)]
|
362 |
impl View {
|
140 |
#[inline]
|
141 |
#[allow(clippy::len_without_is_empty)]
|
142 |
pub fn len(&self) -> usize {
|
54 |
/// If case-insensitive, characters must have a single-character lower-case version (can be the same as upper-case).
|
55 |
#[allow(clippy::len_without_is_empty)]
|
56 |
impl Charset {
|
31 |
/// The number of data directories.
|
32 |
#[allow(clippy::len_without_is_empty)]
|
33 |
pub fn len(&self) -> usize {
|
209 |
/// Return the current file length that has been written.
|
210 |
#[allow(clippy::len_without_is_empty)]
|
211 |
pub fn len(&self) -> usize {
|
118 |
/// Return the current file length that has been written.
|
119 |
#[allow(clippy::len_without_is_empty)]
|
120 |
pub fn len(&self) -> usize {
|
7 |
/// Trait for writable buffer.
|
8 |
#[allow(clippy::len_without_is_empty)]
|
9 |
pub trait WritableBuffer {
|
70 |
#[allow(clippy::len_without_is_empty)]
|
71 |
impl FilesystemEntry {
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
impl Metadata {
|
3 |
#[allow(clippy::len_without_is_empty)]
|
4 |
pub trait DependencyGraph {
|
87 |
/// Returns file size
|
88 |
#[allow(clippy::len_without_is_empty)]
|
89 |
#[deprecated(since = "0.2.0", note = "use Metadata::size(&self)")]
|
47 |
/// - When BytesContentRange's range is no known, we don't know whethre it's empty.
|
48 |
#[allow(clippy::len_without_is_empty)]
|
49 |
#[derive(Debug, Default, Clone, Copy, Eq, PartialEq, serde::Serialize, serde::Deserialize)]
|
51 |
#[allow(clippy::len_without_is_empty)]
|
52 |
impl MetaData {
|
66 |
#[allow(clippy::len_without_is_empty)]
|
67 |
impl<'a> Deriver<'a> {
|
132 |
#[allow(clippy::len_without_is_empty)]
|
133 |
impl<'a> Signer<'a> {
|
14 |
///
|
15 |
#[allow(clippy::len_without_is_empty)]
|
16 |
pub fn len(&self) -> usize {
|
2045 |
#[allow(clippy::len_without_is_empty)]
|
2046 |
impl<'map, Key, Value> OccupiedEntry<'map, Key, Value> {
|
175 |
#[allow(clippy::len_without_is_empty)]
|
176 |
impl PasswordHash {
|
454 |
#[allow(clippy::len_without_is_empty)]
|
455 |
impl AggregatedChoke {
|
47 |
/// The number of bytes in the body (if known).
|
48 |
#[allow(clippy::len_without_is_empty)]
|
49 |
#[inline]
|
155 |
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
|
156 |
#[allow(clippy::len_without_is_empty)]
|
157 |
pub struct RelationList(Vec<DocumentId>);
|
231 |
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
|
232 |
#[allow(clippy::len_without_is_empty)]
|
233 |
pub struct PinnedRelationList(Vec<DocumentViewId>);
|
38 |
/// It's mainly used to read the metadata, which is at the end of the source.
|
39 |
#[allow(clippy::len_without_is_empty)]
|
40 |
pub trait Length {
|
51 |
#[allow(clippy::len_without_is_empty)]
|
52 |
impl Row {
|
266 |
#[allow(clippy::len_without_is_empty)]
|
267 |
impl List {
|
388 |
#[allow(clippy::len_without_is_empty)]
|
389 |
impl Map {
|
290 |
#[cfg(feature = "alloc")]
|
291 |
#[allow(clippy::len_without_is_empty)]
|
292 |
impl PasswordHashString {
|
109 |
#[allow(clippy::len_without_is_empty)]
|
110 |
impl Output {
|
81 |
#[allow(clippy::len_without_is_empty)]
|
82 |
impl<'a> Salt<'a> {
|
183 |
#[allow(clippy::len_without_is_empty)]
|
184 |
impl SaltString {
|
86 |
/// (constant-time) to clone.
|
87 |
#[allow(clippy::len_without_is_empty)]
|
88 |
pub trait PbBuffer: Any + Sized {
|
121 |
/// users of the crate.
|
122 |
#[allow(clippy::len_without_is_empty)]
|
123 |
pub trait PciRegion: Debug + Send + Sync + Sealed {
|
558 |
#[allow(clippy::len_without_is_empty)]
|
559 |
impl MappedOwningPciRegion {
|
896 |
/// Return the number of counters this `Counts` holds results for.
|
897 |
#[allow(clippy::len_without_is_empty)] // Groups are never empty.
|
898 |
pub fn len(&self) -> usize {
|
40 |
/// Even for `n = 0` it contains the empty permutation.
|
41 |
#[allow(clippy::len_without_is_empty)]
|
42 |
pub fn len(&self) -> usize {
|
194 |
/// Metadata information about a file.
|
195 |
#[allow(clippy::len_without_is_empty)]
|
196 |
pub struct Metadata {
|
6 |
impl Metadata {
|
7 |
#[allow(clippy::len_without_is_empty)]
|
8 |
pub fn len(&self) -> u64 {
|
12 |
/// See also [`std::fs::Metadata::len`].
|
13 |
#[allow(clippy::len_without_is_empty)]
|
14 |
pub fn len(&self) -> u64 {
|
72 |
#[allow(clippy::len_without_is_empty)]
|
73 |
impl RevMapping {
|
9 |
/// Polygon describes the
|
10 |
#[allow(clippy::len_without_is_empty)] // a polygon can never be empty so an is_empty function would always return false.
|
11 |
#[derive(Debug, Clone)]
|
42 |
#[allow(clippy::len_without_is_empty)]
|
43 |
impl Header {
|
359 |
#[allow(clippy::len_without_is_empty)]
|
360 |
impl<F> ArrayLayout<F>
|
32 |
/// Trait for types which can be handled with `BitSetStrategy`.
|
33 |
#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
|
34 |
pub trait BitSetLike: Clone + fmt::Debug {
|
81 |
/// Give the length of the inner text of this token
|
82 |
#[allow(clippy::len_without_is_empty)]
|
83 |
#[must_use]
|
79 |
// Point methods
|
80 |
#[allow(clippy::len_without_is_empty)]
|
81 |
impl Point {
|
69 |
// `is_empty()` method wouldn't make much sense; in *all* valid use cases, `len() > 0`.
|
70 |
#[allow(clippy::len_without_is_empty)]
|
71 |
impl ErasedPwBox {
|
321 |
// `is_empty()` method wouldn't make much sense; in *all* valid use cases, `len() > 0`.
|
322 |
#[allow(clippy::len_without_is_empty)]
|
323 |
impl<K: DeriveKey, C: Cipher> PwBox<K, C> {
|
362 |
// `is_empty()` method wouldn't make much sense; in *all* valid use cases, `len() > 0`.
|
363 |
#[allow(clippy::len_without_is_empty)]
|
364 |
impl RestoredPwBox {
|
81 |
/// Returns the maximum length of tokens this tokenizer supports. For most CLIP models, this is 77 tokens.
|
82 |
#[allow(clippy::len_without_is_empty)]
|
83 |
pub fn len(&self) -> usize {
|
144 |
/// A scheduler to be used in diffusion pipelines.
|
145 |
#[allow(clippy::len_without_is_empty)]
|
146 |
pub trait DiffusionScheduler: Default + Clone {
|
8 |
#[allow(clippy::len_without_is_empty)]
|
9 |
impl Vec3 {
|
397 |
#[must_use]
|
398 |
#[allow(clippy::len_without_is_empty)]
|
399 |
pub fn len(&self) -> usize {
|
75 |
impl LocalStorage {
|
76 |
#[allow(clippy::len_without_is_empty)]
|
77 |
pub fn len(&self) -> usize {
|
32 |
#[allow(clippy::len_without_is_empty)]
|
33 |
impl Vector {
|
539 |
#[allow(clippy::len_without_is_empty)]
|
540 |
impl<F: Field> BinaryExpression<F> {
|
80 |
#[allow(clippy::len_without_is_empty)]
|
81 |
impl BinaryWire {
|
574 |
}
|
575 |
#[allow(clippy::len_without_is_empty)]
|
576 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
421 |
#[allow(clippy::len_without_is_empty)]
|
422 |
pub fn len(&self) -> PyResult<usize> {
|
1 |
/// Distance between singletons.
|
2 |
#[allow(clippy::len_without_is_empty)]
|
3 |
pub trait Measure<U = Self> {
|
204 |
#[allow(clippy::len_without_is_empty)]
|
205 |
impl RantValue {
|
41 |
#[allow(clippy::len_without_is_empty)]
|
42 |
impl Assignment {
|
2246 |
// Waiting for `ExactSizeIterator::is_empty` to be stabilized. See rust-lang/rust#35428
|
2247 |
#[allow(clippy::len_without_is_empty)]
|
2248 |
pub trait IndexedParallelIterator: ParallelIterator {
|
87 |
#[allow(clippy::len_without_is_empty)]
|
88 |
impl<T> RingBuf<T> {
|
136 |
#[allow(clippy::len_without_is_empty)]
|
137 |
impl<T: Sized + Clone + Copy> StructBuffer<T> {
|
519 |
#[allow(clippy::len_without_is_empty)]
|
520 |
impl<T> Tree<T> {
|
577 |
#[allow(clippy::len_without_is_empty)]
|
578 |
impl<T> PolyTree<T> {
|
257 |
/// spectrum of length N+1.
|
258 |
#[allow(clippy::len_without_is_empty)]
|
259 |
pub trait RealToComplex<T>: Sync + Send {
|
294 |
/// spectrum of length 2*N.
|
295 |
#[allow(clippy::len_without_is_empty)]
|
296 |
pub trait ComplexToReal<T>: Sync + Send {
|
18 |
#[allow(clippy::len_without_is_empty)]
|
19 |
impl<T> NonEmptyVec<T>
|
6 |
/// have been created with [`Protection::NONE`].
|
7 |
#[allow(clippy::len_without_is_empty)]
|
8 |
pub struct Allocation {
|
115 |
#[allow(clippy::len_without_is_empty)]
|
116 |
impl Span {
|
234 |
#[allow(clippy::len_without_is_empty)]
|
235 |
pub fn len(&self) -> usize { self.concealed.len() + self.revealed.len() }
|
511 |
/// It unifies [Range] and [RangeInclusive]
|
512 |
#[allow(clippy::len_without_is_empty)] // Since it is generic, there is no trivial way to compare with zero
|
513 |
pub trait FiniteRange<T> {
|
87 |
#[allow(clippy::len_without_is_empty)]
|
88 |
impl GameMods {
|
130 |
#[inline]
|
131 |
#[allow(clippy::len_without_is_empty)]
|
132 |
pub fn len(&self) -> usize {
|
250 |
#[inline]
|
251 |
#[allow(clippy::len_without_is_empty)]
|
252 |
pub fn len(&self) -> usize {
|
157 |
#[inline]
|
158 |
#[allow(clippy::len_without_is_empty)]
|
159 |
pub fn len(&self) -> usize {
|
227 |
#[inline]
|
228 |
#[allow(clippy::len_without_is_empty)]
|
229 |
pub fn len(&self) -> usize {
|
205 |
#[inline]
|
206 |
#[allow(clippy::len_without_is_empty)]
|
207 |
pub fn len(&self) -> usize {
|
95 |
#[allow(clippy::len_without_is_empty)]
|
96 |
impl GameMods {
|
194 |
/// Returns the prefix length.
|
195 |
#[allow(clippy::len_without_is_empty)]
|
196 |
pub fn len(self) -> u8 {
|
332 |
/// Returns the length part of a prefix.
|
333 |
#[allow(clippy::len_without_is_empty)]
|
334 |
pub fn len(self) -> u8 {
|
66 |
/// Returns the size of the underlying file.
|
67 |
#[allow(clippy::len_without_is_empty)]
|
68 |
pub fn len(&self) -> u64 {
|
5 |
/// Common trait for structs that enrich a byte block with JSON depth information.
|
6 |
#[allow(clippy::len_without_is_empty)]
|
7 |
pub trait DepthBlock<'a>: Sized {
|
98 |
#[allow(clippy::len_without_is_empty)]
|
99 |
impl<D: Directory, C: Codec> SegmentInfos<D, C> {
|
51 |
#[allow(clippy::len_without_is_empty)]
|
52 |
impl Point2 {
|
79 |
#[allow(clippy::len_without_is_empty)]
|
80 |
impl<V, S> Embeddings<V, S>
|
304 |
/// Embedding vocabularies.
|
305 |
#[allow(clippy::len_without_is_empty)]
|
306 |
pub trait Vocab: Clone {
|
255 |
#[allow(clippy::len_without_is_empty)]
|
256 |
impl PyByteInner {
|
41 |
// Python dict methods:
|
42 |
#[allow(clippy::len_without_is_empty)]
|
43 |
#[pyimpl(flags(BASETYPE))]
|
8 |
#[allow(clippy::len_without_is_empty)]
|
9 |
pub trait SimpleSeq {
|
49 |
#[allow(clippy::len_without_is_empty)]
|
50 |
impl<'a> PyTuple {
|
23 |
#[allow(clippy::len_without_is_empty)] // Clippy gets confused by the const on is_empty
|
24 |
impl TruncatedPacketNumber {
|
269 |
/// This can be prevented by using [`S3Reader::open`] which guarantees that the header is present.
|
270 |
#[allow(clippy::len_without_is_empty)]
|
271 |
pub fn len(&mut self) -> u64 {
|
54 |
#[allow(clippy::len_without_is_empty)]
|
55 |
pub mod alloc;
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
impl Header {
|
314 |
#[allow(clippy::len_without_is_empty)]
|
315 |
impl Pseudo {
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
impl Header {
|
322 |
#[allow(clippy::len_without_is_empty)]
|
323 |
impl Pseudo {
|
97 |
#[allow(clippy::len_without_is_empty)]
|
98 |
impl Vec3 {
|
126 |
/// How many tiles/elements are in the grid.
|
127 |
#[allow(clippy::len_without_is_empty)]
|
128 |
pub fn len(&self) -> usize {
|
10 |
/// A trait for types representing an integer point on a 2d grid.
|
11 |
#[allow(clippy::len_without_is_empty)]
|
12 |
pub trait GridPoint: Clone + Copy {
|
173 |
/// A trait for types representing a 2d size.
|
174 |
#[allow(clippy::len_without_is_empty)]
|
175 |
pub trait Size2d: Clone + Copy {
|
420 |
#[allow(clippy::len_without_is_empty)]
|
421 |
impl<T> TypeDefArray<T>
|
166 |
#[allow(clippy::len_without_is_empty)]
|
167 |
#[inline(always)]
|
207 |
#[allow(clippy::len_without_is_empty)]
|
208 |
impl<T> LocalSender<T> {
|
22 |
#[allow(clippy::len_without_is_empty)]
|
23 |
impl ReadResult {
|
77 |
#[allow(clippy::len_without_is_empty)]
|
78 |
impl<Size> EncodedPoint<Size>
|
190 |
/// A pointer to a SID valid for lifetime `'a`.
|
191 |
#[allow(clippy::len_without_is_empty)]
|
192 |
#[derive(Copy, Clone, Debug)]
|
54 |
#[allow(clippy::len_without_is_empty)]
|
55 |
impl SecuredLinkedList {
|
21 |
#[allow(clippy::len_without_is_empty)]
|
22 |
impl DataMap {
|
240 |
*/
|
241 |
#[allow(clippy::len_without_is_empty)]
|
242 |
pub trait Classes:
|
133 |
/// Retrieves the total number of bytes of the file
|
134 |
#[allow(clippy::len_without_is_empty)]
|
135 |
pub fn len(&self) -> Result<usize, ()> {
|
466 |
#[allow(clippy::len_without_is_empty)]
|
467 |
#[derive(Debug, Clone, PartialEq, Eq)]
|
497 |
#[allow(clippy::len_without_is_empty)]
|
498 |
impl Curve {
|
6 |
/// A minimal interface for the Row type to support the deserialization.
|
7 |
#[allow(clippy::len_without_is_empty)]
|
8 |
pub trait DeserializableRow: Sized {
|
72 |
/// Payload size in bytes.
|
73 |
#[allow(clippy::len_without_is_empty)]
|
74 |
pub fn len(&self) -> usize {
|
19 |
// `is_empty()` makes no sense here, since we don't expect empty fragments
|
20 |
#[allow(clippy::len_without_is_empty)]
|
21 |
pub fn len(&self) -> usize {
|
233 |
}
|
234 |
#[allow(clippy::len_without_is_empty)]
|
235 |
impl Shmem {
|
246 |
}
|
247 |
#[allow(clippy::len_without_is_empty)]
|
248 |
impl Shmem {
|
13 |
#[allow(missing_docs)]
|
14 |
#[allow(clippy::len_without_is_empty)]
|
15 |
pub trait AbstractMut {
|
19 |
#[allow(missing_docs)]
|
20 |
#[allow(clippy::len_without_is_empty)]
|
21 |
pub trait IntoAbstract {
|
284 |
#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
|
285 |
impl Printable {
|
404 |
#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
|
405 |
impl Lexical {
|
14 |
#[allow(clippy::len_without_is_empty)]
|
15 |
impl State {
|
65 |
#[allow(clippy::len_without_is_empty)]
|
66 |
#[cfg(any(feature = "proto-ipv4", feature = "proto-ipv6"))]
|
239 |
#[allow(clippy::len_without_is_empty)]
|
240 |
#[allow(clippy::trivially_copy_pass_by_ref)]
|
325 |
#[allow(clippy::len_without_is_empty)]
|
326 |
#[allow(clippy::trivially_copy_pass_by_ref)]
|
755 |
#[allow(clippy::len_without_is_empty)]
|
756 |
impl Control {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl<T: AsRef<[u8]>> Packet<T> {
|
51 |
#[allow(clippy::len_without_is_empty)]
|
52 |
impl Data {
|
28 |
#[allow(clippy::len_without_is_empty)]
|
29 |
impl<T, V> Cache<T, V>
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl<T, V> Cache<T, V>
|
25 |
#[allow(clippy::len_without_is_empty)]
|
26 |
impl MessageHeader {
|
21 |
#[allow(clippy::len_without_is_empty)]
|
22 |
pub trait LedgerScheme: Sized {
|
21 |
#[allow(clippy::len_without_is_empty)]
|
22 |
pub trait LedgerScheme: Sized {
|
24 |
#[allow(clippy::len_without_is_empty)]
|
25 |
impl<Slice: AsRef<[u64]>> BitIteratorBE<Slice> {
|
22 |
#[allow(clippy::len_without_is_empty)]
|
23 |
impl SockAddr {
|
6 |
/// Building block for queries.
|
7 |
#[allow(clippy::len_without_is_empty)]
|
8 |
pub trait ComponentView {
|
324 |
#[allow(clippy::len_without_is_empty)]
|
325 |
impl JoystickSelect {
|
140 |
#[allow(clippy::len_without_is_empty)]
|
141 |
pub fn len(&self) -> usize {
|
172 |
/// Returns the number of messages in the network.
|
173 |
#[allow(clippy::len_without_is_empty)]
|
174 |
pub fn len(&self) -> usize {
|
68 |
#[allow(clippy::len_without_is_empty)] // no use case for an emptiness check
|
69 |
impl<T: Ord, RefObj: SequentialSpec> LinearizabilityTester<T, RefObj> {
|
62 |
#[allow(clippy::len_without_is_empty)] // no use case for an emptiness check
|
63 |
impl<T: Ord, RefObj: SequentialSpec> SequentialConsistencyTester<T, RefObj> {
|
122 |
/// Returns the number of elements in the map.
|
123 |
#[allow(clippy::len_without_is_empty)]
|
124 |
pub fn len(&self) -> usize { self.values.len() }
|
140 |
#[allow(clippy::len_without_is_empty)]
|
141 |
impl<T, const MIN_LEN: u16> StrictVec<T, MIN_LEN>
|
229 |
{
|
230 |
#[allow(clippy::len_without_is_empty)]
|
231 |
pub fn len(&self) -> u16 { self.0.len() as u16 }
|
334 |
{
|
335 |
#[allow(clippy::len_without_is_empty)]
|
336 |
pub fn len(&self) -> u16 { self.0.len() as u16 }
|
440 |
impl<const MIN_LEN: u16> StrictStr<MIN_LEN> {
|
441 |
#[allow(clippy::len_without_is_empty)]
|
442 |
pub fn len(&self) -> u16 { self.0.len() as u16 }
|
517 |
impl<const MIN_LEN: u16, const MAX_LEN: u16> AsciiString<MIN_LEN, MAX_LEN> {
|
518 |
#[allow(clippy::len_without_is_empty)]
|
519 |
pub fn len(&self) -> u16 { self.0.len() as u16 }
|
137 |
#[allow(clippy::len_without_is_empty)]
|
138 |
impl Encoder {
|
36 |
/// Flash methods implemented for `pac::FLASH`
|
37 |
#[allow(clippy::len_without_is_empty)]
|
38 |
pub trait FlashExt {
|
81 |
/// Number of bytes in the binary representation of the image.
|
82 |
#[allow(clippy::len_without_is_empty)] // is-empty doesn't make sense
|
83 |
pub fn len(&self) -> usize {
|
277 |
/// response length.
|
278 |
#[allow(clippy::len_without_is_empty)]
|
279 |
pub fn len(&self) -> Option<usize> {
|
163 |
/// response length.
|
164 |
#[allow(clippy::len_without_is_empty)]
|
165 |
pub fn len(&self) -> Option<usize> {
|
15 |
}
|
16 |
#[allow(clippy::len_without_is_empty)]
|
17 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
28 |
#[cfg(feature = "concurrent")]
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
pub trait Items:
|
42 |
#[cfg(not(feature = "concurrent"))]
|
43 |
#[allow(clippy::len_without_is_empty)]
|
44 |
pub trait Items: IntoIterator<Item = Self::Elem> {
|
137 |
#[allow(clippy::len_without_is_empty)]
|
138 |
impl Encoder {
|
7 |
/// Number a categorical variable.
|
8 |
#[allow(clippy::len_without_is_empty)]
|
9 |
pub trait Number<V>
|
3 |
#[allow(clippy::len_without_is_empty)]
|
4 |
pub trait DependencyGraph {
|
82 |
/// deletion.
|
83 |
#[allow(clippy::len_without_is_empty)]
|
84 |
#[inline(always)]
|
369 |
/// ```
|
370 |
#[allow(clippy::len_without_is_empty)]
|
371 |
pub trait Array {
|
534 |
/// ```
|
535 |
#[allow(clippy::len_without_is_empty)]
|
536 |
pub trait Object {
|
33 |
impl StringTable {
|
34 |
#[allow(clippy::len_without_is_empty)]
|
35 |
pub fn len(&self) -> usize {
|
178 |
/// Returns the length of this entity in bytes for UTF-8 encoding.
|
179 |
#[allow(clippy::len_without_is_empty)]
|
180 |
#[must_use]
|
1 |
#[allow(clippy::len_without_is_empty)]
|
2 |
pub trait Dimension: AsRef<[usize]> + AsMut<[usize]> + Clone {
|
372 |
#[allow(clippy::len_without_is_empty)]
|
373 |
impl<T> Grid<T> {
|
74 |
#[allow(clippy::len_without_is_empty)]
|
75 |
impl<T> Row<T> {
|
451 |
#[allow(clippy::len_without_is_empty)]
|
452 |
impl Data {
|
31 |
#[allow(clippy::len_without_is_empty)]
|
32 |
impl Addresses {
|
276 |
#[allow(clippy::len_without_is_empty)]
|
277 |
impl<T> TypeDefArray<T>
|
144 |
/// Get the length of the bytecode, in bytes.
|
145 |
#[allow(clippy::len_without_is_empty)] // An empty buffer is **not** valid DXBC or DXIL bytecode, and would thus be an invalid construction of this type!
|
146 |
pub fn len(&self) -> usize { self.0.get_buffer_size() }
|
327 |
/// ```
|
328 |
#[allow(clippy::len_without_is_empty)]
|
329 |
pub fn len(&self) -> usize {
|
36 |
#[allow(clippy::len_without_is_empty)]
|
37 |
impl<T> Range<T>
|
77 |
/// ```
|
78 |
#[allow(clippy::len_without_is_empty)] // ExactSizeIterator::is_empty is unstable
|
79 |
#[cfg(feature = "unstable")]
|
435 |
// is_empty is defined in the generic impl block above
|
436 |
#[allow(clippy::len_without_is_empty)]
|
437 |
impl MetadataValue<Ascii> {
|
435 |
// is_empty is defined in the generic impl block above
|
436 |
#[allow(clippy::len_without_is_empty)]
|
437 |
impl MetadataValue<Ascii> {
|
160 |
/// Return the number of relays in this path.
|
161 |
#[allow(clippy::len_without_is_empty)]
|
162 |
pub fn len(&self) -> usize {
|
202 |
/// Return the number of hops in this path.
|
203 |
#[allow(clippy::len_without_is_empty)]
|
204 |
pub(crate) fn len(&self) -> usize {
|
99 |
#[inline]
|
100 |
#[allow(clippy::len_without_is_empty)]
|
101 |
pub fn len(&self) -> usize {
|
402 |
#[inline]
|
403 |
#[allow(clippy::len_without_is_empty)]
|
404 |
pub fn len(&self) -> usize {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl ContentLength {
|
40 |
#[allow(clippy::len_without_is_empty)]
|
41 |
impl RetryAfter {
|
87 |
/// Get the size of the header formatted with given payload length.
|
88 |
#[allow(clippy::len_without_is_empty)]
|
89 |
pub fn len(&self, length: u64) -> usize {
|
12 |
#[allow(clippy::len_without_is_empty)]
|
13 |
pub trait TupleLen {
|
44 |
#[inline(always)]
|
45 |
#[allow(clippy::len_without_is_empty)]
|
46 |
pub fn len(&self) -> usize { self.len }
|
82 |
/// Preview the built buffer's length without consuming the form.
|
83 |
#[allow(clippy::len_without_is_empty)]
|
84 |
pub fn len(&self) -> usize {
|
61 |
#[derive(Debug)]
|
62 |
#[allow(clippy::len_without_is_empty)]
|
63 |
pub struct GoBuf(pub(crate) usize);
|
62 |
/// Tx5 buffer type for sending and receiving data.
|
63 |
#[allow(clippy::len_without_is_empty)]
|
64 |
pub struct Buf {
|
61 |
#[derive(Debug)]
|
62 |
#[allow(clippy::len_without_is_empty)]
|
63 |
pub struct GoBuf(pub(crate) usize);
|
59 |
#[inline]
|
60 |
#[allow(clippy::len_without_is_empty)]
|
61 |
pub fn len(&self) -> u16 {
|
60 |
/// Returns the size of the prefix in bytes
|
61 |
#[allow(clippy::len_without_is_empty)]
|
62 |
pub fn len(&self) -> usize {
|
317 |
#[inline]
|
318 |
#[allow(clippy::len_without_is_empty)]
|
319 |
pub fn len(&self) -> usize {
|
64 |
/// Returns the size of the prefix in bytes
|
65 |
#[allow(clippy::len_without_is_empty)]
|
66 |
pub fn len(&self) -> usize {
|
323 |
#[inline]
|
324 |
#[allow(clippy::len_without_is_empty)]
|
325 |
pub fn len(&self) -> usize {
|
50 |
#[beta]
|
51 |
#[allow(clippy::len_without_is_empty)]
|
52 |
pub trait NlmsgHeader: Sized {
|
66 |
#[allow(clippy::len_without_is_empty)]
|
67 |
pub trait RunnableBenchmarkList {
|
58 |
// benchmark suite).
|
59 |
#[allow(clippy::len_without_is_empty)]
|
60 |
pub trait RunnableSuiteBenchmarkList<Inp: Debug> {
|
178 |
#[allow(clippy::len_without_is_empty)]
|
179 |
impl Sentence {
|
379 |
#[allow(clippy::len_without_is_empty)]
|
380 |
impl<'a> DepGraph<'a> {
|
445 |
#[allow(clippy::len_without_is_empty)]
|
446 |
impl<'a> DepGraphMut<'a> {
|
52 |
#[cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
|
53 |
impl Name {
|
572 |
}
|
573 |
#[allow(clippy::len_without_is_empty)]
|
574 |
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S> {
|
321 |
/// For types which should have the a `len` method.
|
322 |
#[allow(clippy::len_without_is_empty)]
|
323 |
pub trait CollectionLength {
|
82 |
/// This is always at least 1, since every regex has at least one capture group that corresponds to the full match.
|
83 |
#[allow(clippy::len_without_is_empty)]
|
84 |
pub fn len(&self) -> usize {
|
51 |
/// in your own `next_unchecked`
|
52 |
#[allow(clippy::len_without_is_empty)]
|
53 |
pub unsafe trait TupleElem {
|
77 |
#[allow(clippy::len_without_is_empty)]
|
78 |
impl Descriptor {
|
186 |
#[cfg(any(test, feature = "test-utils"))]
|
187 |
#[allow(clippy::len_without_is_empty)]
|
188 |
impl VirtqUsedElem {
|
98 |
#[inline]
|
99 |
#[allow(clippy::len_without_is_empty)]
|
100 |
pub fn len(&self) -> usize {
|
167 |
#[allow(clippy::len_without_is_empty)]
|
168 |
impl RangeInclusive {
|
23 |
#[allow(clippy::len_without_is_empty)]
|
24 |
impl AtomicBitmap {
|
174 |
/// Represents a continuous region of guest physical memory.
|
175 |
#[allow(clippy::len_without_is_empty)]
|
176 |
pub trait GuestMemoryRegion: Bytes<MemoryRegionAddress, E = Error> {
|
933 |
#[allow(clippy::len_without_is_empty)]
|
934 |
impl<'a, T, B> VolatileRef<'a, T, B>
|
122 |
/// ```
|
123 |
#[allow(clippy::len_without_is_empty)]
|
124 |
pub unsafe trait FamStruct {
|
47 |
#[must_use]
|
48 |
#[allow(clippy::len_without_is_empty)]
|
49 |
pub const fn len(self) -> usize {
|
53 |
#[must_use]
|
54 |
#[allow(clippy::len_without_is_empty)]
|
55 |
pub const fn len(self) -> usize {
|
292 |
// is_empty is defined in the generic impl block above
|
293 |
#[allow(clippy::len_without_is_empty)]
|
294 |
impl MetadataValue<Ascii> {
|
11 |
#[allow(clippy::len_without_is_empty)] // empty is not allowed by `new`
|
12 |
impl<'a> Hostname<'a> {
|
88 |
#[inline]
|
89 |
#[allow(clippy::len_without_is_empty)] // constructor validates client ID is not empty
|
90 |
pub const fn len(&self) -> u8 {
|
444 |
#[allow(clippy::len_without_is_empty)] // Clippy thinks it's an iterator.
|
445 |
#[derive(Clone, Debug, Default)]
|
10 |
#[allow(clippy::len_without_is_empty)] // it doesn't make sense in our case
|
11 |
pub trait AbstractNowHeader {
|
40 |
#[allow(clippy::len_without_is_empty)]
|
41 |
impl ReceptionReport {
|
39 |
#[allow(clippy::len_without_is_empty)]
|
40 |
impl ReceptionReport {
|
114 |
/// Len returns number of queued packets.
|
115 |
#[allow(clippy::len_without_is_empty)]
|
116 |
pub async fn len(&self, id: usize) -> usize {
|
109 |
#[must_use]
|
110 |
#[allow(clippy::len_without_is_empty)] // it can never be empty
|
111 |
pub fn len(&self) -> usize {
|
51 |
/// ```
|
52 |
#[allow(clippy::len_without_is_empty)]
|
53 |
pub fn len(&self) -> u32 {
|
376 |
// It holds a binary len, so will never be emtpy
|
377 |
#[allow(clippy::len_without_is_empty)]
|
378 |
impl BinaryCollection {
|
29 |
#[allow(clippy::len_without_is_empty)]
|
30 |
impl NVecDim {
|
16 |
#[allow(clippy::len_without_is_empty)]
|
17 |
impl Swizzle {
|
940 |
}
|
941 |
#[allow(clippy::len_without_is_empty)] // This is not a container and is_empty() makes no sense
|
942 |
impl DeviceName {
|
7 |
/// The encoded data, to be used in chunks or in its entirety.
|
8 |
#[allow(clippy::len_without_is_empty)]
|
9 |
pub struct Data<'a> {
|
94 |
#[allow(clippy::len_without_is_empty)]
|
95 |
impl Aggregation {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl Model {
|
36 |
#[allow(clippy::len_without_is_empty)]
|
37 |
impl<T: AsRef<[u8]>> MaskVectBuffer<T> {
|
73 |
#[allow(clippy::len_without_is_empty)]
|
74 |
impl Eqname {
|
18 |
#[allow(clippy::len_without_is_empty)]
|
19 |
impl Name {
|
18 |
#[allow(clippy::len_without_is_empty)]
|
19 |
impl Ncname {
|
18 |
#[allow(clippy::len_without_is_empty)]
|
19 |
impl Nmtoken {
|
19 |
#[allow(clippy::len_without_is_empty)]
|
20 |
impl Qname {
|
431 |
#[allow(clippy::len_without_is_empty)]
|
432 |
impl<'a> ParsedQname<'a> {
|
20 |
#[allow(clippy::len_without_is_empty)]
|
21 |
impl UriQualifiedName {
|
375 |
#[allow(clippy::len_without_is_empty)]
|
376 |
impl<'a> ParsedUriQualifiedName<'a> {
|
755 |
#[allow(clippy::len_without_is_empty)]
|
756 |
impl Control {
|
33 |
#[allow(clippy::len_without_is_empty)]
|
34 |
impl<T: AsRef<[u8]>> Packet<T> {
|
170 |
#[allow(clippy::len_without_is_empty)] // If it is empty, the Lrc is destroyed, therefore is_empty is useless
|
171 |
impl<T> Lrc<T> {
|
31 |
#[allow(clippy::len_without_is_empty)]
|
32 |
impl PublicKey {
|
7 |
#[allow(clippy::len_without_is_empty)]
|
8 |
impl Certificate {
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
impl Tag {
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
impl DecryptedData {
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
impl Signature {
|
9 |
#[allow(clippy::len_without_is_empty)]
|
10 |
impl Signature {
|
10 |
#[allow(clippy::len_without_is_empty)]
|
11 |
impl Swizzle {
|
1 |
#![allow(clippy::len_without_is_empty)]
|
5 |
//
|
6 |
#![allow(clippy::len_without_is_empty)]
|
7 |
// this landed on 1.60. Let's not force everyone to bump just yet
|
19 |
// There are many guaranteed nonzero lengths
|
20 |
#![allow(clippy::len_without_is_empty)]
|
21 |
// We are using special indexing everywhere
|
12 |
// There are many guaranteed nonzero lengths
|
13 |
#![allow(clippy::len_without_is_empty)]
|
14 |
// We are using special indexing everywhere
|
32 |
#![deny(clippy::all, missing_docs)]
|
33 |
#![allow(clippy::missing_safety_doc, clippy::len_without_is_empty)]
|
3 |
clippy::needless_update,
|
4 |
clippy::len_without_is_empty,
|
5 |
clippy::needless_range_loop,
|
1 |
#![allow(clippy::len_without_is_empty)]
|
2 |
use bytes::Bytes;
|
288 |
#![allow(clippy::let_and_return)]
|
289 |
#![allow(clippy::len_without_is_empty)]
|
290 |
// What is the more appropiate way to iterate a couple arrays of same size, while also using the index itself?
|
1 |
#![allow(clippy::len_without_is_empty)]
|
2 |
use nom::number::complete::{be_u16, be_u64, be_u8};
|
1 |
#![allow(clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
22 |
clippy::unknown_clippy_lints,
|
23 |
clippy::len_without_is_empty,
|
24 |
clippy::should_implement_trait
|
45 |
#![allow(clippy::enum_variant_names)]
|
46 |
#![allow(clippy::len_without_is_empty)]
|
47 |
#![allow(clippy::collapsible_if)]
|
2 |
#![allow(clippy::comparison_chain)]
|
3 |
#![allow(clippy::len_without_is_empty)]
|
4 |
#![cfg_attr(doc_cfg, feature(doc_cfg))]
|
32 |
useless_let_if_seq,
|
33 |
len_without_is_empty))]
|
34 |
#![cfg_attr(
|
383 |
clippy::large_enum_variant,
|
384 |
clippy::len_without_is_empty,
|
385 |
clippy::missing_errors_doc,
|
75 |
#![allow(clippy::len_without_is_empty, clippy::needless_lifetimes)]
|
76 |
#![deny(missing_docs)]
|
1 |
#![doc = include_str!("../README.md")]
|
2 |
#![allow(clippy::len_without_is_empty)]
|
3 |
mod default_error;
|
1 |
#![allow(clippy::upper_case_acronyms)]
|
2 |
#![allow(clippy::len_without_is_empty)]
|
3 |
#![allow(non_camel_case_types)]
|
45 |
clippy::derive_hash_xor_eq,// tested
|
46 |
clippy::len_without_is_empty,// the character types are never empty
|
47 |
clippy::needless_return,// `foo.bar();\n foo` looks unfinished
|
50 |
#![warn(missing_docs, unreachable_pub, future_incompatible, rust_2018_idioms)]
|
51 |
#![allow(clippy::len_without_is_empty)]
|
52 |
#![doc(test(attr(deny(warnings))))]
|
14 |
#![allow(clippy::new_without_default)]
|
15 |
#![allow(clippy::len_without_is_empty)]
|
16 |
#![allow(clippy::unused_unit)]
|
22 |
#![allow(clippy::redundant_field_names)]
|
23 |
#![allow(clippy::len_without_is_empty)]
|
24 |
#![allow(clippy::needless_update)]
|
47 |
clippy::len_zero,
|
48 |
clippy::len_without_is_empty,
|
49 |
)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
2 |
#![allow(clippy::should_implement_trait)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
2 |
#![allow(clippy::should_implement_trait)]
|
112 |
//! MIT
|
113 |
#![allow(clippy::len_without_is_empty)]
|
110 |
unused_macros,
|
111 |
clippy::len_without_is_empty,
|
112 |
clippy::upper_case_acronyms
|
59 |
// std does not have ones.
|
60 |
#![allow(clippy::new_without_default, clippy::len_without_is_empty)]
|
41 |
#![allow(clippy::collapsible_else_if)]
|
42 |
#![allow(clippy::len_without_is_empty)]
|
43 |
#![allow(clippy::nonminimal_bool)]
|
2 |
// need to define is_empty() method.
|
3 |
#![allow(clippy::len_without_is_empty)]
|
107 |
clippy::len_zero,
|
108 |
clippy::len_without_is_empty,
|
109 |
clippy::if_same_then_else,
|
1 |
#![allow(clippy::len_without_is_empty, clippy::wrong_self_convention)]
|
2 |
mod apply;
|
15 |
)]
|
16 |
#![allow(clippy::len_without_is_empty, clippy::type_complexity)]
|
39 |
#![allow(clippy::len_without_is_empty)]
|
40 |
#![allow(clippy::many_single_char_names)]
|
5 |
// Addresses are never empty.
|
6 |
#![allow(clippy::len_without_is_empty)]
|
8 |
#![allow(clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
18 |
clippy::collapsible_if,
|
19 |
clippy::len_without_is_empty,
|
20 |
clippy::many_single_char_names,
|
49 |
// Requiring a is_empty function doesn't make sense in this context
|
50 |
#![allow(clippy::len_without_is_empty)]
|
51 |
extern crate rand;
|
1 |
#![no_std]
|
2 |
#![allow(clippy::len_without_is_empty)] // Loaf is never empty, clippy ;)
|
3 |
#![allow(clippy::needless_return)]
|
133 |
clippy::tabs_in_doc_comments,
|
134 |
clippy::len_without_is_empty,
|
135 |
clippy::needless_late_init,
|
1 |
#![allow(clippy::len_without_is_empty)]
|
29 |
impl<'a> MacCommand<'a> {
|
30 |
#![allow(clippy::len_without_is_empty)]
|
31 |
pub fn len(&self) -> usize {
|
1 |
#![allow(clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
12 |
#![warn(missing_docs)]
|
13 |
#![allow(clippy::len_without_is_empty)]
|
37 |
// `SignalSet` can never be empty, thus an `is_empty` method doesn't make sense.
|
38 |
#![allow(clippy::len_without_is_empty)]
|
82 |
#![allow(clippy::field_reassign_with_default)]
|
83 |
#![allow(clippy::len_without_is_empty)]
|
84 |
#![allow(clippy::manual_range_contains)]
|
1 |
//! Block header storage.
|
2 |
#![allow(clippy::len_without_is_empty)]
|
3 |
use crate::block::Height;
|
12 |
#![warn(unused_attributes)]
|
13 |
#![allow(bad_style, deprecated, overflowing_literals, unused_macros, clippy::cast_lossless, clippy::cast_ptr_alignment, clippy::len_without_is_empty, clippy::trivially_copy_pass_by_ref, clippy::unreadable_literal)]
|
14 |
#[doc(hidden)]
|
1 |
#![allow(clippy::mutable_key_type, clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
2 |
use std::convert::TryFrom;
|
1 |
#![allow(clippy::len_without_is_empty)]
|
24 |
clippy::missing_errors_doc,
|
25 |
clippy::len_without_is_empty
|
26 |
)]
|
98 |
#![cfg_attr(not(feature = "std"), no_std)]
|
99 |
#![allow(clippy::len_without_is_empty)]
|
100 |
#![allow(clippy::new_ret_no_self)]
|
4 |
#![allow(clippy::type_complexity)]
|
5 |
#![allow(clippy::len_without_is_empty)]
|
6 |
#![allow(clippy::needless_range_loop)]
|
3 |
#![allow(clippy::type_complexity)]
|
4 |
#![allow(clippy::len_without_is_empty)]
|
5 |
#![allow(clippy::needless_range_loop)]
|
23 |
#![no_std]
|
24 |
#![allow(clippy::len_without_is_empty)]
|
23 |
#![no_std]
|
24 |
#![allow(clippy::len_without_is_empty)]
|
16 |
#![no_std]
|
17 |
#![allow(clippy::len_without_is_empty)]
|
13 |
#![no_std]
|
14 |
#![allow(clippy::len_without_is_empty)]
|
12 |
#![no_std]
|
13 |
#![allow(clippy::len_without_is_empty)]
|
12 |
#![no_std]
|
13 |
#![allow(clippy::len_without_is_empty)]
|
21 |
#![no_std]
|
22 |
#![allow(clippy::len_without_is_empty)]
|
21 |
#![no_std]
|
22 |
#![allow(clippy::len_without_is_empty)]
|
13 |
#![no_std]
|
14 |
#![allow(clippy::len_without_is_empty)]
|
13 |
#![no_std]
|
14 |
#![allow(clippy::len_without_is_empty)]
|
16 |
#![no_std]
|
17 |
#![allow(clippy::len_without_is_empty)]
|
16 |
#![no_std]
|
17 |
#![allow(clippy::len_without_is_empty)]
|
18 |
#![allow(clippy::len_without_is_empty)]
|
19 |
#![cfg_attr(not(feature = "cryptographically-insecure"), deny(deprecated))]
|
12 |
#![allow(clippy::len_without_is_empty)]
|
14 |
#![allow(clippy::len_without_is_empty)]
|
16 |
#![no_std]
|
17 |
#![allow(clippy::len_without_is_empty)]
|
16 |
#![no_std]
|
17 |
#![allow(clippy::len_without_is_empty)]
|
22 |
#![no_std]
|
23 |
#![allow(clippy::len_without_is_empty)]
|
22 |
#![no_std]
|
23 |
#![allow(clippy::len_without_is_empty)]
|
12 |
#![allow(clippy::len_without_is_empty)]
|
23 |
#![no_std]
|
24 |
#![allow(clippy::len_without_is_empty)]
|
22 |
#![no_std]
|
23 |
#![allow(clippy::len_without_is_empty)]
|
13 |
#![no_std]
|
14 |
#![allow(clippy::len_without_is_empty)]
|
13 |
#![no_std]
|
14 |
#![allow(clippy::len_without_is_empty)]
|
46 |
#![no_std]
|
47 |
#![allow(clippy::len_without_is_empty)]
|
46 |
#![no_std]
|
47 |
#![allow(clippy::len_without_is_empty)]
|
16 |
#![allow(clippy::len_without_is_empty)]
|
15 |
#![allow(clippy::len_without_is_empty)]
|
15 |
#![allow(clippy::len_without_is_empty)]
|
21 |
#![allow(clippy::bool_assert_comparison)]
|
22 |
#![allow(clippy::len_without_is_empty)]
|
27 |
impl PartialDecode {
|
28 |
#![allow(clippy::len_without_is_empty)]
|
29 |
pub fn new(
|
2 |
// need to define is_empty() method.
|
3 |
#![allow(clippy::len_without_is_empty)]
|
55 |
#![cfg_attr(feature = "cargo-clippy", allow(bool_comparison))]
|
56 |
#![cfg_attr(feature = "cargo-clippy", allow(len_without_is_empty))]
|
133 |
#![allow(
|
134 |
clippy::len_without_is_empty,
|
135 |
clippy::shadow_reuse,
|
69 |
// Added this, because this lint ignores, that len() method also has different signature
|
70 |
#![allow(clippy::len_without_is_empty)]
|
133 |
#![allow(
|
134 |
clippy::len_without_is_empty,
|
135 |
clippy::shadow_reuse,
|
1 |
#![allow(clippy::len_without_is_empty)]
|
9 |
clippy::redundant_closure,
|
10 |
clippy::len_without_is_empty,
|
11 |
clippy::large_enum_variant,
|
18 |
clippy::redundant_closure,
|
19 |
clippy::len_without_is_empty,
|
20 |
clippy::large_enum_variant,
|
380 |
#![allow(clippy::should_implement_trait)]
|
381 |
#![allow(clippy::len_without_is_empty)]
|
382 |
#![allow(clippy::match_like_matches_macro)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
5 |
#![allow(
|
6 |
clippy::len_without_is_empty,
|
7 |
clippy::derive_partial_eq_without_eq,
|
1 |
#![allow(clippy::len_without_is_empty)]
|
12 |
#![warn(missing_docs)]
|
13 |
#![allow(clippy::len_without_is_empty)]
|
14 |
#![allow(clippy::derive_partial_eq_without_eq)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
12 |
#![warn(missing_docs)]
|
13 |
#![allow(clippy::len_without_is_empty)]
|
59 |
#![warn(missing_docs, unreachable_pub, future_incompatible, rust_2018_idioms)]
|
60 |
#![allow(clippy::len_without_is_empty)]
|
61 |
#![doc(test(attr(deny(warnings))))]
|
65 |
clippy::approx_constant,
|
66 |
clippy::len_without_is_empty,
|
67 |
)]
|
1 |
#![allow(clippy::let_and_return)]
|
2 |
#![allow(clippy::len_without_is_empty)]
|
1 |
#![allow(clippy::len_without_is_empty)]
|
70 |
clippy::large_enum_variant,
|
71 |
clippy::len_without_is_empty,
|
72 |
clippy::missing_safety_doc, // TODO: remove
|
35 |
#![allow(unused_parens)]
|
36 |
#![allow(clippy::len_without_is_empty)]
|
37 |
#![allow(clippy::diverging_sub_expression)]
|
18 |
clippy::collapsible_if,
|
19 |
clippy::len_without_is_empty,
|
20 |
clippy::many_single_char_names,
|
68 |
#![allow(
|
69 |
clippy::len_without_is_empty,
|
70 |
clippy::useless_attribute,
|
8 |
#![allow(
|
9 |
clippy::len_without_is_empty, // This is really an internal interface...
|
10 |
)]
|