alpm_types

Type Alias CompressedSize

source
pub type CompressedSize = u64;
Expand description

Compressed size of a file (in bytes)

This is a type alias for u64.

ยงExamples

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

use alpm_types::{CompressedSize, Error};

assert_eq!(CompressedSize::from_str("1"), Ok(1));
assert!(CompressedSize::from_str("-1").is_err());