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, str::FromStr};

use alpm_types::{CompressedSize, Error};

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