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

Method as_str

atomic-objects/src/view_snapshot.rs:31–36  ·  view source on GitHub ↗

The canonical string form stored in the object.

(self)

Source from the content-addressed store, hash-verified

29impl ViewScopeLabel {
30 /// The canonical string form stored in the object.
31 pub fn as_str(self) -> &'static str {
32 match self {
33 ViewScopeLabel::Shared => "shared",
34 ViewScopeLabel::Draft => "draft",
35 }
36 }
37
38 /// Parse from the object's `scope` string. Unknown values are treated as
39 /// `Shared` — the safe default (a root that inherits nothing).

Callers 3

newMethod · 0.45
effective_changesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected