pub struct LdcInsnNode {
pub insn: InsnNode,
pub value: LdcValue,
}Fields§
§insn: InsnNode§value: LdcValueImplementations§
Source§impl LdcInsnNode
impl LdcInsnNode
pub fn from_index(opcode: u8, index: u16) -> Self
pub fn int(value: i32) -> Self
pub fn long(value: i64) -> Self
pub fn float(value: f32) -> Self
pub fn double(value: f64) -> Self
pub fn short(value: i16) -> Self
pub fn char(value: u16) -> Self
pub fn byte(value: i8) -> Self
pub fn boolean(value: bool) -> Self
pub fn string(value: &str) -> Self
Trait Implementations§
Source§impl Clone for LdcInsnNode
impl Clone for LdcInsnNode
Source§fn clone(&self) -> LdcInsnNode
fn clone(&self) -> LdcInsnNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LdcInsnNode
impl Debug for LdcInsnNode
Source§impl From<LdcInsnNode> for Insn
impl From<LdcInsnNode> for Insn
Source§fn from(value: LdcInsnNode) -> Self
fn from(value: LdcInsnNode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LdcInsnNode
impl RefUnwindSafe for LdcInsnNode
impl Send for LdcInsnNode
impl Sync for LdcInsnNode
impl Unpin for LdcInsnNode
impl UnsafeUnpin for LdcInsnNode
impl UnwindSafe for LdcInsnNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more