pub fn serialize(
        &self,
        serializer: &mut FastFieldSerializer,
        mapping: &HashMap<Field, FnvHashMap<UnorderedTermId, TermOrdinal>>,
    ) -> io::Result<()> {
        for field_writer in &self.single_value_writers {
            field_writer.serialize(serializer)?;
        }
        
        for field_writer in &self.multi_values_writers {
            let field = field_writer.field();
            field_writer.serialize(serializer, mapping.get(&field))?;
        }
        for field_writer in &self.bytes_value_writers {
            field_writer.serialize(serializer)?;
        }
        Ok(())
    }
/// Serializes all of the `FastFieldWriter`s by pushing them in
/// order to the fast field serializer.
Serializes all of the `FastFieldWriter`s by pushing them in
order to the fast field serializer.
Serializes all of the ` FastFieldWriter ` s by pushing them in order to the fast field serializer .
pub fn serialize(
        &self,
        serializer: &mut FastFieldSerializer,
        mapping: &HashMap<Field, FnvHashMap<UnorderedTermId, TermOrdinal>>,
    ) -> io::Result<()> {
        for field_writer in &self.single_value_writers {
            field_writer.serialize(serializer)?;
        }
        for field_writer in &self.multi_values_writers {
            let field = field_writer.field();
            field_writer.serialize(serializer, mapping.get(&field))?;
        }
        for field_writer in &self.bytes_value_writers {
            field_writer.serialize(serializer)?;
        }
        Ok(())
    }
pub fn serialize ( & self , serializer : & mut FastFieldSerializer , mapping : & HashMap < Field , FnvHashMap < UnorderedTermId , TermOrdinal > > , ) -> io :: Result < ( ) > { for field_writer in & self . single_value_writers { field_writer . serialize ( serializer ) ? ; } for field_writer in & self . multi_values_writers { let field = field_writer . field ( ) ; field_writer . serialize ( serializer , mapping . get ( & field ) ) ? ; } for field_writer in & self . bytes_value_writers { field_writer . serialize ( serializer ) ? ; } Ok ( ( ) ) }
Serializes all of the `FastFieldWriter`s by pushing them in
order to the fast field serializer.
Serializes all of the ` FastFieldWriter ` s by pushing them in order to the fast field serializer .
&self
serializer
&mut FastFieldSerializer
mapping
&HashMap<Field, FnvHashMap<UnorderedTermId, TermOrdinal>>
&self
serializer
&mut FastFieldSerializer
mapping
&HashMap<Field, FnvHashMap<UnorderedTermId, TermOrdinal>>