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

Method read_optional_effect_value

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

Source from the content-addressed store, hash-verified

1414 }
1415
1416 fn read_optional_effect_value(&mut self) -> Result<Option<EffectValue>, OperationCodecError> {
1417 if self.read_optional_tag("effect value")? {
1418 Ok(Some(self.read_effect_value()?))
1419 } else {
1420 Ok(None)
1421 }
1422 }
1423
1424 fn read_effect_value(&mut self) -> Result<EffectValue, OperationCodecError> {
1425 match self.read_u8()? {

Callers 1

decode_effect_receiptFunction · 0.80

Calls 2

read_optional_tagMethod · 0.80
read_effect_valueMethod · 0.80

Tested by

no test coverage detected