pub struct ConstantPool { /* private fields */ }Implementations§
Source§impl ConstantPool
impl ConstantPool
pub fn insert_full(&mut self, constant: ConstantData) -> (usize, bool)
pub fn insert(&mut self, constant: ConstantData) -> bool
pub fn from_ordered(constants: Vec<ConstantData>) -> Self
pub fn into_vec(self) -> Vec<ConstantData>
pub fn get_index(&self, idx: usize) -> Option<&ConstantData>
pub fn iter(&self) -> Iter<'_, ConstantData> ⓘ
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Source§impl Clone for ConstantPool
impl Clone for ConstantPool
Source§impl Debug for ConstantPool
impl Debug for ConstantPool
Source§impl Default for ConstantPool
impl Default for ConstantPool
Source§impl Index<usize> for ConstantPool
impl Index<usize> for ConstantPool
Source§impl IntoIterator for ConstantPool
impl IntoIterator for ConstantPool
Auto Trait Implementations§
impl !RefUnwindSafe for ConstantPool
impl Freeze for ConstantPool
impl Send for ConstantPool
impl Sync for ConstantPool
impl Unpin for ConstantPool
impl UnsafeUnpin for ConstantPool
impl UnwindSafe for ConstantPool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more