Skip to main content

ConstantPoolExt

Trait ConstantPoolExt 

Source
pub trait ConstantPoolExt {
    // Required methods
    fn resolve_utf8(&self, index: u16) -> Option<&str>;
    fn get_int(&self, index: u16) -> Option<i32>;
    fn get_long(&self, index: u16) -> Option<i64>;
    fn get_float(&self, index: u16) -> Option<f32>;
    fn get_double(&self, index: u16) -> Option<f64>;
}

Required Methods§

Source

fn resolve_utf8(&self, index: u16) -> Option<&str>

Source

fn get_int(&self, index: u16) -> Option<i32>

Source

fn get_long(&self, index: u16) -> Option<i64>

Source

fn get_float(&self, index: u16) -> Option<f32>

Source

fn get_double(&self, index: u16) -> Option<f64>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ConstantPoolExt for [CpInfo]

Source§

fn resolve_utf8(&self, index: u16) -> Option<&str>

Source§

fn get_int(&self, index: u16) -> Option<i32>

Source§

fn get_long(&self, index: u16) -> Option<i64>

Source§

fn get_float(&self, index: u16) -> Option<f32>

Source§

fn get_double(&self, index: u16) -> Option<f64>

Implementors§