pub struct SerializerOutputConfig {
pub output_dir: PathBuf,
pub generate_llm: bool,
pub generate_machine: bool,
pub compression: CompressionAlgorithm,
pub generate_metadata: bool,
}Expand description
Configuration for serializer output
Fields§
§output_dir: PathBufRoot directory for output files (default: .dx/serializer)
generate_llm: boolGenerate LLM format files
generate_machine: boolGenerate machine format files
compression: CompressionAlgorithmCompression algorithm for machine format
generate_metadata: boolGenerate source/machine validation metadata for cache readers
Implementations§
Source§impl SerializerOutputConfig
impl SerializerOutputConfig
Sourcepub fn with_output_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn with_output_dir(self, dir: impl Into<PathBuf>) -> Self
Set the output directory
Sourcepub fn with_machine(self, generate: bool) -> Self
pub fn with_machine(self, generate: bool) -> Self
Set whether to generate machine format
Sourcepub fn with_compression(self, compression: CompressionAlgorithm) -> Self
pub fn with_compression(self, compression: CompressionAlgorithm) -> Self
Set compression algorithm
Sourcepub fn with_metadata(self, generate: bool) -> Self
pub fn with_metadata(self, generate: bool) -> Self
Set whether to generate source/machine validation metadata.
Trait Implementations§
Source§impl Clone for SerializerOutputConfig
impl Clone for SerializerOutputConfig
Source§fn clone(&self) -> SerializerOutputConfig
fn clone(&self) -> SerializerOutputConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerializerOutputConfig
impl Debug for SerializerOutputConfig
Auto Trait Implementations§
impl Freeze for SerializerOutputConfig
impl RefUnwindSafe for SerializerOutputConfig
impl Send for SerializerOutputConfig
impl Sync for SerializerOutputConfig
impl Unpin for SerializerOutputConfig
impl UnsafeUnpin for SerializerOutputConfig
impl UnwindSafe for SerializerOutputConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.