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

Method to_static

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

Source from the content-addressed store, hash-verified

163 }
164
165 pub fn to_static(&self) -> InstructionArgValue<'static> {
166 match self {
167 InstructionArgValue::Signed(v) => InstructionArgValue::Signed(*v),
168 InstructionArgValue::Unsigned(v) => InstructionArgValue::Unsigned(*v),
169 InstructionArgValue::Opaque(v) => InstructionArgValue::Opaque(v.to_string().into()),
170 }
171 }
172
173 pub fn into_static(self) -> InstructionArgValue<'static> {
174 match self {

Callers 1

fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected