MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / to_u8

Method to_u8

atomic-core/src/pristine/ref_mapping.rs:58–66  ·  view source on GitHub ↗

Encode for the versioned byte encoding.

(self)

Source from the content-addressed store, hash-verified

56
57 /// Encode for the versioned byte encoding.
58 pub fn to_u8(self) -> u8 {
59 match self {
60 Self::Synchronized => 0,
61 Self::GitAhead => 1,
62 Self::AtomicAhead => 2,
63 Self::Diverged => 3,
64 Self::Unrepresentable => 4,
65 }
66 }
67}
68
69impl std::fmt::Display for RefSyncStatus {

Callers 1

encodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected