Trait tantivy_common::HasLen

source ·
pub trait HasLen {
    // Required method
    fn len(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Has length trait

Required Methods§

source

fn len(&self) -> usize

Return length

Provided Methods§

source

fn is_empty(&self) -> bool

Returns true iff empty.

Implementors§

source§

impl HasLen for FileSlice

source§

impl HasLen for WrapFile

source§

impl<T: Deref<Target = [u8]>> HasLen for T