MCPcopy Create free account
hub / github.com/elastio/devx / as_ref

Method as_ref

devx-cmd/src/lib.rs:136–141  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

134
135impl AsRef<[u8]> for BinOrUtf8 {
136 fn as_ref(&self) -> &[u8] {
137 match self {
138 BinOrUtf8::Bin(it) => it.as_ref(),
139 BinOrUtf8::Utf8(it) => it.as_ref(),
140 }
141 }
142}
143
144/// More convenient version of [`std::process::Command`]. Allows for

Callers 2

install_self_as_hookFunction · 0.80
spawn_withMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected