Skip to main content

Module types

Module types 

Source
Expand description

Validated primitive values shared across the crate.

Each type checks its invariants once, at construction (try_new, FromStr, or TryFrom), and reports violations with its own error enum.

Structs§

ApiLevel
An Android API level, as used by minSdkVersion and targetSdkVersion.
ArchivePath
A safe, relative ZIP entry path such as assets/levels/1.bin.
ClassName
A Java class name such as android.app.NativeActivity.
LibraryName
A native library name without its lib prefix and .so suffix: c++_shared names libc++_shared.so.
PackageName
An Android application ID such as org.example.game.
PermissionName
A permission name such as android.permission.INTERNET.
UnknownAbi
An ABI name that Android does not define.
VersionCode
An android:versionCode accepted by Google Play: 1..=2_100_000_000.

Enums§

Abi
An Android application binary interface, which selects the lib/<abi>/ directory a native library is stored in.
ApiLevelError
ArchivePathError
Why an ArchivePath was rejected.
ClassNameError
Why a ClassName was rejected.
LibraryNameError
Why a LibraryName was rejected.
PackageNameError
Why a PackageName was rejected.
PermissionNameError
Why a PermissionName was rejected.
VersionCodeError

Constants§

MAX_ARCHIVE_PATH_LEN
The longest name a classic ZIP entry can have.