pub struct BigIntPool {
pub literals: Vec<BigIntLiteral>,
/* private fields */
}Fields§
§literals: Vec<BigIntLiteral>Distinct large literals in first-appearance order. Each becomes its own passive data segment.
Implementations§
Source§impl BigIntPool
impl BigIntPool
Sourcepub fn lookup(
&self,
digits: &str,
) -> Result<Option<BigIntEntry>, CompilerFailure>
pub fn lookup( &self, digits: &str, ) -> Result<Option<BigIntEntry>, CompilerFailure>
Returns None if the value is within the safe-integer range (wasn’t pooled).
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for BigIntPool
impl Clone for BigIntPool
Source§impl Debug for BigIntPool
impl Debug for BigIntPool
Auto Trait Implementations§
impl Freeze for BigIntPool
impl RefUnwindSafe for BigIntPool
impl Send for BigIntPool
impl Sync for BigIntPool
impl Unpin for BigIntPool
impl UnsafeUnpin for BigIntPool
impl UnwindSafe for BigIntPool
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