MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / patch

Method patch

crates/firewheel-core/src/diff/notify.rs:207–211  ·  view source on GitHub ↗
(data: &ParamData, _: &[u32])

Source from the content-addressed store, hash-verified

205 type Patch = Self;
206
207 fn patch(data: &ParamData, _: &[u32]) -> Result<Self::Patch, super::PatchError> {
208 data.downcast_ref()
209 .ok_or(super::PatchError::InvalidData)
210 .cloned()
211 }
212
213 fn apply(&mut self, patch: Self::Patch) {
214 *self = patch;

Callers

nothing calls this directly

Calls 1

downcast_refMethod · 0.80

Tested by

no test coverage detected