alpm_types::size

Type Alias InstalledSize

source
pub type InstalledSize = u64;
Expand description

Installed size of a package (in bytes)

This is a type alias for u64.

ยงExamples

use std::num::IntErrorKind;
use std::str::FromStr;

use alpm_types::{Error, InstalledSize};

// create InstalledSize from &str
assert_eq!(InstalledSize::from_str("1"), Ok(1));
assert!(InstalledSize::from_str("-1").is_err());