MCPcopy Create free account
hub / github.com/cretz/stackparam / to_u8

Method to_u8

src/bytecode/classfile.rs:209–222  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

207 }
208
209 pub fn to_u8(&self) -> u8 {
210 match *self {
211 ReferenceKind::GetField => 1,
212 ReferenceKind::GetStatic => 2,
213 ReferenceKind::PutField => 3,
214 ReferenceKind::PutStatic => 4,
215 ReferenceKind::InvokeVirtual => 5,
216 ReferenceKind::InvokeStatic => 6,
217 ReferenceKind::InvokeSpecial => 7,
218 ReferenceKind::NewInvokeSpecial => 8,
219 ReferenceKind::InvokeInterface => 9,
220 ReferenceKind::Unknown => 255
221 }
222 }
223}
224
225#[derive(Default, Debug)]

Callers 1

write_constantMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected