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

Method is_already_exists

atomic-core/src/crdt/apply/error.rs:456–464  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

454 /// Returns `true` if this is an "already exists" error.
455 #[inline]
456 pub fn is_already_exists(&self) -> bool {
457 matches!(
458 self,
459 ApplyError::TrunkAlreadyExists { .. }
460 | ApplyError::BranchAlreadyExists { .. }
461 | ApplyError::LeafAlreadyExists { .. }
462 | ApplyError::PathAlreadyExists { .. }
463 )
464 }
465
466 /// Returns `true` if this is an "invalid state" error.
467 #[inline]

Callers 2

is_recoverableMethod · 0.80

Calls

no outgoing calls

Tested by 1