MCPcopy Create free account
hub / github.com/encounter/objdiff / into_static

Method into_static

objdiff-core/src/obj/mod.rs:173–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 }
172
173 pub fn into_static(self) -> InstructionArgValue<'static> {
174 match self {
175 InstructionArgValue::Signed(v) => InstructionArgValue::Signed(v),
176 InstructionArgValue::Unsigned(v) => InstructionArgValue::Unsigned(v),
177 InstructionArgValue::Opaque(v) => {
178 InstructionArgValue::Opaque(Cow::Owned(v.into_owned()))
179 }
180 }
181 }
182}
183
184impl fmt::Display for InstructionArgValue<'_> {

Calls

no outgoing calls