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

Method read_operation_relation

atomic-core/src/operation/codec.rs:1068–1080  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1066 }
1067
1068 fn read_operation_relation(&mut self) -> Result<OperationRelation, OperationCodecError> {
1069 match self.read_u8()? {
1070 0 => Ok(OperationRelation::Undo {
1071 target: self.read_operation_id()?,
1072 }),
1073 1 => Ok(OperationRelation::Restore {
1074 target: self.read_operation_id()?,
1075 }),
1076 tag => Err(OperationCodecError::new(format!(
1077 "unsupported operation relation tag {tag}"
1078 ))),
1079 }
1080 }
1081
1082 fn read_repo_state(&mut self) -> Result<RepoStateRef, OperationCodecError> {
1083 let view = if self.read_optional_tag("view state")? {

Callers 2

decode_operationFunction · 0.80

Calls 2

read_u8Method · 0.80
read_operation_idMethod · 0.80

Tested by

no test coverage detected