MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / as_str

Method as_str

crates/openshell-core/src/settings.rs:17–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15 /// Human-readable value kind used in error messages.
16 #[must_use]
17 pub const fn as_str(self) -> &'static str {
18 match self {
19 Self::String => "string",
20 Self::Int => "int",
21 Self::Bool => "bool",
22 }
23 }
24}
25
26/// Static descriptor for one registered sandbox setting key.

Callers 1

parse_bool_likeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected