pub struct VersionInfo {
pub editor_version: i32,
pub editor_build: i32,
pub map_version: i32,
pub format_version: i32,
pub prefab: bool,
}
Expand description
Represents the version info of a VMF file.
Fields§
§editor_version: i32
The editor version.
editor_build: i32
The editor build number.
map_version: i32
The map version.
format_version: i32
The format version.
prefab: bool
Whether the VMF is a prefab.
Trait Implementations§
Source§impl Clone for VersionInfo
impl Clone for VersionInfo
Source§fn clone(&self) -> VersionInfo
fn clone(&self) -> VersionInfo
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 VersionInfo
impl Debug for VersionInfo
Source§impl Default for VersionInfo
impl Default for VersionInfo
Source§fn default() -> VersionInfo
fn default() -> VersionInfo
Returns the “default value” for a type. Read more
Source§impl From<VersionInfo> for VmfBlock
impl From<VersionInfo> for VmfBlock
Source§fn from(val: VersionInfo) -> Self
fn from(val: VersionInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VersionInfo
impl PartialEq for VersionInfo
Source§impl TryFrom<VmfBlock> for VersionInfo
impl TryFrom<VmfBlock> for VersionInfo
Source§impl VmfSerializable for VersionInfo
impl VmfSerializable for VersionInfo
impl StructuralPartialEq for VersionInfo
Auto Trait Implementations§
impl Freeze for VersionInfo
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnwindSafe for VersionInfo
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