Module 0x1::LanguageVersion
Struct LanguageVersion
struct LanguageVersion has copy, drop, store
Fields
-
major: u64
-
Function new
public fun new(version: u64): LanguageVersion::LanguageVersion
Implementation
public fun new(version: u64): LanguageVersion {
LanguageVersion {major: version}
}
Specification
pragma verify = false;
Function version
public fun version(version: &LanguageVersion::LanguageVersion): u64
Implementation
public fun version(version: &LanguageVersion): u64 {
version.major
}
Specification
pragma verify = false;