Struct koto_parser::ConstantPool [−][src]
pub struct ConstantPool { /* fields omitted */ }
Expand description
A constant pool produced by the Parser for a Koto script
A ConstantPoolBuilder
is used to prepare the pool.
Implementations
Returns the constant corresponding to the provided index
Returns the concatenated string data stored in the pool
Returns the string corresponding to the provided index
Warning! Panics if there isn’t a string at the provided index
Returns bounds in the concatenated string data corresponding to the provided index
Warning! Panics if there isn’t a string at the provided index
Returns the f64 corresponding to the provided constant index
Warning! Panics if there isn’t an f64 at the provided index
Returns the i64 corresponding to the provided constant index
Warning! Panics if there isn’t an i64 at the provided index
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConstantPool
impl !Send for ConstantPool
impl !Sync for ConstantPool
impl Unpin for ConstantPool
impl UnwindSafe for ConstantPool
Blanket Implementations
Mutably borrows from an owned value. Read more