pub struct ConstantPool { /* private fields */ }Implementations§
Source§impl ConstantPool
impl ConstantPool
pub fn new(diagnostic: Rc<Diagnostic>) -> Self
pub fn add_int(&mut self, n: i128) -> ConstantId
pub fn add_str(&mut self, s: &str) -> ConstantId
Trait Implementations§
Auto Trait Implementations§
impl !Send for ConstantPool
impl !Sync for ConstantPool
impl Forget for ConstantPool
impl Freeze for ConstantPool
impl RefUnwindSafe 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