pub fn finish(self) -> Result<(), Error> {
		let handle = self.object.into_heads().handle;

		for (_, embeds) in self.embeds {
			let mut write_embed = |embed: Linkstore| -> Result<(), Error> {
				if let LinkstoreBytes::Set(bytes) = embed.bytes {
					handle.seek(SeekFrom::Start(embed.offset))?;
					handle.write_all(bytes.as_ref())?;
				}
				Ok(())
			};

			match embeds {
				MaybeScalar::Scalar(scalar) => write_embed(scalar)?,
				MaybeScalar::Vec(vec) => vec.into_iter().try_for_each(write_embed)?,
			}
		}

		Ok(())
	}
/// Consume the Embedder and write the linkstores to the file or memory buffer.
Consume the Embedder and write the linkstores to the file or memory buffer.
Consume the Embedder and write the linkstores to the file or memory buffer .
pub fn finish(self) -> Result<(), Error> {
		let handle = self.object.into_heads().handle;
		for (_, embeds) in self.embeds {
			let mut write_embed = |embed: Linkstore| -> Result<(), Error> {
				if let LinkstoreBytes::Set(bytes) = embed.bytes {
					handle.seek(SeekFrom::Start(embed.offset))?;
					handle.write_all(bytes.as_ref())?;
				}
				Ok(())
			};
			match embeds {
				MaybeScalar::Scalar(scalar) => write_embed(scalar)?,
				MaybeScalar::Vec(vec) => vec.into_iter().try_for_each(write_embed)?,
			}
		}
		Ok(())
	}
pub fn finish ( self ) -> Result < ( ) , Error > { let handle = self . object . into_heads ( ) . handle ; for ( _ , embeds ) in self . embeds { let mut write_embed = | embed : Linkstore | -> Result < ( ) , Error > { if let LinkstoreBytes :: Set ( bytes ) = embed . bytes { handle . seek ( SeekFrom :: Start ( embed . offset ) ) ? ; handle . write_all ( bytes . as_ref ( ) ) ? ; } Ok ( ( ) ) } ; match embeds { MaybeScalar :: Scalar ( scalar ) => write_embed ( scalar ) ? , MaybeScalar :: Vec ( vec ) => vec . into_iter ( ) . try_for_each ( write_embed ) ? , } } Ok ( ( ) ) }
Consume the Embedder and write the linkstores to the file or memory buffer.
Consume the Embedder and write the linkstores to the file or memory buffer .
self