pub struct AdtMetadata {
pub version: AdtVersion,
pub file_type: AdtFileType,
pub chunk_count: usize,
pub discovery_duration: Duration,
pub parse_duration: Duration,
pub warnings: Vec<String>,
pub discovery: ChunkDiscovery,
}Expand description
Diagnostic metadata for format research and debugging.
Contains performance metrics and warnings collected during parsing. Useful for format analysis, debugging, and performance profiling.
§Example
use wow_adt::api::parse_adt_with_metadata;
use std::fs::File;
let mut file = File::open("terrain.adt")?;
let (adt, metadata) = parse_adt_with_metadata(&mut file)?;
println!("Version: {:?}", metadata.version);
println!("Discovery: {:?}", metadata.discovery_duration);
println!("Parse: {:?}", metadata.parse_duration);
println!("Chunks: {}", metadata.chunk_count);
for warning in &metadata.warnings {
eprintln!("Warning: {}", warning);
}Fields§
§version: AdtVersionDetected ADT version
file_type: AdtFileTypeDetected file type
chunk_count: usizeTotal number of chunks discovered
discovery_duration: DurationTime spent in discovery phase
parse_duration: DurationTime spent in parse phase
warnings: Vec<String>Warning messages collected during parsing
discovery: ChunkDiscoveryFull chunk discovery results
Trait Implementations§
Source§impl Clone for AdtMetadata
impl Clone for AdtMetadata
Source§fn clone(&self) -> AdtMetadata
fn clone(&self) -> AdtMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AdtMetadata
impl RefUnwindSafe for AdtMetadata
impl Send for AdtMetadata
impl Sync for AdtMetadata
impl Unpin for AdtMetadata
impl UnwindSafe for AdtMetadata
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