[][src]Struct koto_parser::ConstantPool

pub struct ConstantPool { /* fields omitted */ }

Implementations

impl ConstantPool[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn get(&self, index: ConstantIndex) -> Option<Constant<'_>>[src]

pub fn string_data(&self) -> &str[src]

pub fn get_str(&self, index: ConstantIndex) -> &str[src]

pub fn get_str_bounds(&self, index: ConstantIndex) -> Range<usize>[src]

pub fn get_f64(&self, index: ConstantIndex) -> f64[src]

pub fn get_i64(&self, index: ConstantIndex) -> i64[src]

pub fn iter(&self) -> ConstantPoolIterator<'_>[src]

Trait Implementations

impl Clone for ConstantPool[src]

impl Debug for ConstantPool[src]

impl Default for ConstantPool[src]

impl Display for ConstantPool[src]

impl Hash for ConstantPool[src]

impl PartialEq<ConstantPool> for ConstantPool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.