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§
sourcefn size_hint(&self) -> usize
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.
sourcefn next_element<V: ValueDeserialize>(
&mut self
) -> Result<Option<V>, DeserializeError>
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.