Trait tantivy::schema::document::ArrayAccess

source ·
pub trait ArrayAccess<'de> {
    // Required methods
    fn size_hint(&self) -> usize;
    fn next_element<V: ValueDeserialize>(
        &mut self
    ) -> Result<Option<V>, DeserializeError>;
}
Expand description

Access to a sequence of values which can be deserialized.

Required Methods§

source

fn size_hint(&self) -> usize

A indicator as to how many values are in the object.

This can be used to pre-allocate entries but should not be depended on as a fixed size.

source

fn next_element<V: ValueDeserialize>( &mut self ) -> Result<Option<V>, DeserializeError>

Attempts to deserialize the next element in the sequence.

Object Safety§

This trait is not object safe.

Implementors§