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>) -> ConstantPool
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§fn clone(&self) -> ConstantPool
fn clone(&self) -> ConstantPool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstantPool
impl Debug for ConstantPool
Source§impl Default for ConstantPool
impl Default for ConstantPool
Source§fn default() -> ConstantPool
fn default() -> ConstantPool
Returns the “default value” for a type. Read more
Source§impl Index<usize> for ConstantPool
impl Index<usize> for ConstantPool
Source§impl IntoIterator for ConstantPool
impl IntoIterator for ConstantPool
Source§type Item = ConstantData
type Item = ConstantData
The type of the elements being iterated over.
Source§type IntoIter = IntoIter<ConstantData>
type IntoIter = IntoIter<ConstantData>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <ConstantPool as IntoIterator>::IntoIter
fn into_iter(self) -> <ConstantPool as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
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