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

Method put_optional_working_copy

atomic-core/src/operation/codec.rs:407–416  ·  view source on GitHub ↗
(
        &mut self,
        value: Option<WorkingCopyId>,
    )

Source from the content-addressed store, hash-verified

405 }
406
407 fn put_optional_working_copy(
408 &mut self,
409 value: Option<WorkingCopyId>,
410 ) -> Result<(), OperationCodecError> {
411 self.put_optional_tag(value.is_some())?;
412 if let Some(value) = value {
413 self.put_working_copy(value)?;
414 }
415 Ok(())
416 }
417
418 fn put_operation_kind(&mut self, kind: OperationKind) -> Result<(), OperationCodecError> {
419 self.put_u8(match kind {

Callers 2

encode_operation_payloadFunction · 0.80
put_effect_targetMethod · 0.80

Calls 2

put_optional_tagMethod · 0.80
put_working_copyMethod · 0.45

Tested by

no test coverage detected