pub trait Length {
// Required method
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
The length (or number of elements) of a collection.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Length for BooleanBuffer
Available on crate feature arrow-rs only.
impl Length for BooleanBuffer
Available on crate feature
arrow-rs only.Source§impl Length for NullBuffer
Available on crate feature arrow-rs only.
impl Length for NullBuffer
Available on crate feature
arrow-rs only.Source§impl<T: FixedSize> Length for BufferBuilder<T>
Available on crate feature arrow-rs only.
impl<T: FixedSize> Length for BufferBuilder<T>
Available on crate feature
arrow-rs only.Source§impl<T: FixedSize> Length for ScalarBuffer<T>
Available on crate feature arrow-rs only.
impl<T: FixedSize> Length for ScalarBuffer<T>
Available on crate feature
arrow-rs only.Implementors§
impl Length for VariableSizeBinary
impl<Buffer: BufferType> Length for Bitmap<Buffer>
impl<K: ArrayType<K>, V: ArrayType<V>, Buffer: BufferType> Length for KeyValueArray<K, V, Buffer>
Available on crate feature
map only.