pub struct VersionConfig {
pub version: WowVersion,
}Expand description
Version-specific configuration for WDT handling
Fields§
§version: WowVersionImplementations§
Source§impl VersionConfig
impl VersionConfig
Sourcepub fn new(version: WowVersion) -> Self
pub fn new(version: WowVersion) -> Self
Create a new version configuration
Sourcepub fn validate_mphd_flags(&self, flags: u32) -> Vec<String>
pub fn validate_mphd_flags(&self, flags: u32) -> Vec<String>
Validate MPHD flags for this version
Sourcepub fn should_have_chunk(&self, chunk: &str, is_wmo_only: bool) -> bool
pub fn should_have_chunk(&self, chunk: &str, is_wmo_only: bool) -> bool
Check if a chunk should be present based on version and flags
Trait Implementations§
Source§impl Clone for VersionConfig
impl Clone for VersionConfig
Source§fn clone(&self) -> VersionConfig
fn clone(&self) -> VersionConfig
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 moreSource§impl Debug for VersionConfig
impl Debug for VersionConfig
Source§impl PartialEq for VersionConfig
impl PartialEq for VersionConfig
impl Eq for VersionConfig
impl StructuralPartialEq for VersionConfig
Auto Trait Implementations§
impl Freeze for VersionConfig
impl RefUnwindSafe for VersionConfig
impl Send for VersionConfig
impl Sync for VersionConfig
impl Unpin for VersionConfig
impl UnwindSafe for VersionConfig
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