pub(crate) struct ResourceVersion {
pub(crate) major: u16,
pub(crate) minor: u16,
pub(crate) patch: u16,
pub(crate) build: u16,
}
Expand description
Windows resources store versions as four 16-bit integers.
Fields§
§major: u16
§minor: u16
§patch: u16
§build: u16
Implementations§
Source§impl ResourceVersion
impl ResourceVersion
Sourcepub(crate) fn to_quad_string(&self) -> String
pub(crate) fn to_quad_string(&self) -> String
Format the version as a comma-separated string of four integers
as expected by Windows resource scripts for the FILEVERSION
and PRODUCTVERSION
fields.
Auto Trait Implementations§
impl Freeze for ResourceVersion
impl RefUnwindSafe for ResourceVersion
impl Send for ResourceVersion
impl Sync for ResourceVersion
impl Unpin for ResourceVersion
impl UnwindSafe for ResourceVersion
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes