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

Method fmt

atomic-core/src/crdt/apply/options.rs:361–377  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

359
360impl fmt::Display for ApplyOptions {
361 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
362 let mode = if self.is_strict() {
363 "strict"
364 } else if self.is_lenient() {
365 "lenient"
366 } else {
367 "custom"
368 };
369
370 write!(f, "ApplyOptions({})", mode)?;
371
372 if let Some(max) = self.max_operations {
373 write!(f, " [max: {}]", max)?;
374 }
375
376 Ok(())
377 }
378}
379
380// ApplyOptionsBuilder

Callers

nothing calls this directly

Calls 2

is_strictMethod · 0.80
is_lenientMethod · 0.80

Tested by

no test coverage detected