1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
////////////////////////////////////////////////////////////////////////////////
// This Source Code Form is subject to the terms of the Mozilla Public /
// License, v. 2.0. If a copy of the MPL was not distributed with this /
// file, You can obtain one at https://mozilla.org/MPL/2.0/. /
// /
////////////////////////////////////////////////////////////////////////////////
//! Possible compression formats to utilize
use crate;
/// Trait that represents a format to be utilized for compression
///
/// This trait is referenced entirely via associated functions at compile time
/// and gets entirely monomorphized out. It solely exists to reference
/// associated functions on the control types. It should not be implemented
/// on structs that are intended to be constructed, and should generally only be
/// implemented on unconstructable ZST structs or empty enums.
/// Reference implementation as originally made in the 90s.
/// - Shortened header compared to later implementations, only encodes
/// decompressed size ([Reference](crate::header::mode::Reference))
/// Format utilized by The Sims games from Sims 1 to 2, as well as Simcity 4
/// - Uses standard [Maxis](crate::header::mode::Maxis) header
/// Format utilized by The Sims 3 and Sims 4.
/// - Uses new [SimEA](crate::header::mode::SimEA) header