pub struct WriteOpts {
pub internal_codec: u8,
pub quad: QuadClustering,
pub leaves: LeafPolicy,
pub version: u8,
pub cluster: Option<ClusterOpts>,
pub spill_dir: Option<PathBuf>,
}Expand description
Assembly options.
Fields§
§internal_codec: u8Codec of the root, leaves, card and stats (writer_codec()).
quad: QuadClusteringQuad tile clustering.
leaves: LeafPolicyDirectory leaf sizes.
version: u8The generation to write: VERSION (always, for every real writer) or
VERSION_06, which the tests use to make a 0x06 input for convert
(label root inside the root, no annex).
cluster: Option<ClusterOpts>Cluster the subject-leading permutations by class (0x07 only); None
writes them in subject order, and un-clusters a clustered input.
spill_dir: Option<PathBuf>Where this writer spills the sort runs of the 0x07 quad orders and of
class clustering; None = the system temporary directory. Per writer,
never shared: another writer in the process may delete its own.
Implementations§
Source§impl WriteOpts
impl WriteOpts
Sourcepub fn with_spill_dir(self, dir: Option<PathBuf>) -> WriteOpts
pub fn with_spill_dir(self, dir: Option<PathBuf>) -> WriteOpts
These options spilling into dir.
Sourcepub fn with_cluster(self, c: Option<ClusterOpts>) -> WriteOpts
pub fn with_cluster(self, c: Option<ClusterOpts>) -> WriteOpts
These options with class clustering on (Some) or off.
Trait Implementations§
Auto Trait Implementations§
impl Forget for WriteOpts
impl Freeze for WriteOpts
impl Move for WriteOpts
impl RefUnwindSafe for WriteOpts
impl Send for WriteOpts
impl Sync for WriteOpts
impl Unpin for WriteOpts
impl UnsafeUnpin for WriteOpts
impl UnwindSafe for WriteOpts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more