pub struct LoadCx { /* private fields */ }Expand description
Implementations§
Source§impl LoadCx
impl LoadCx
Sourcepub fn fresh_class_id(&mut self) -> ClassId
pub fn fresh_class_id(&mut self) -> ClassId
Reserves a fresh stable class id.
Sourcepub fn fresh_function_id(&mut self) -> FunctionId
pub fn fresh_function_id(&mut self) -> FunctionId
Reserves a fresh stable function id.
Sourcepub fn fresh_macro_id(&mut self) -> MacroId
pub fn fresh_macro_id(&mut self) -> MacroId
Reserves a fresh stable macro id.
Sourcepub fn fresh_case_id(&mut self) -> CaseId
pub fn fresh_case_id(&mut self) -> CaseId
Reserves a fresh stable case id.
Sourcepub fn fresh_shape_id(&mut self) -> ShapeId
pub fn fresh_shape_id(&mut self) -> ShapeId
Reserves a fresh stable shape id.
Sourcepub fn fresh_codec_id(&mut self) -> CodecId
pub fn fresh_codec_id(&mut self) -> CodecId
Reserves a fresh stable codec id.
Sourcepub fn fresh_number_domain_id(&mut self) -> NumberDomainId
pub fn fresh_number_domain_id(&mut self) -> NumberDomainId
Reserves a fresh stable number-domain id.
Sourcepub fn require(&self, capability: &CapabilityName) -> Result<()>
pub fn require(&self, capability: &CapabilityName) -> Result<()>
Checks that the given capability is granted, returning
Error::CapabilityDenied
otherwise.
Sourcepub fn resolve_class(&self, symbol: &Symbol) -> Result<Value>
pub fn resolve_class(&self, symbol: &Symbol) -> Result<Value>
Resolves an already-registered class value by symbol.
Sourcepub fn resolve_function(&self, symbol: &Symbol) -> Result<Value>
pub fn resolve_function(&self, symbol: &Symbol) -> Result<Value>
Resolves an already-registered function value by symbol.
Sourcepub fn resolve_macro(&self, symbol: &Symbol) -> Result<Value>
pub fn resolve_macro(&self, symbol: &Symbol) -> Result<Value>
Resolves an already-registered macro value by symbol.
Sourcepub fn resolve_shape(&self, symbol: &Symbol) -> Result<Value>
pub fn resolve_shape(&self, symbol: &Symbol) -> Result<Value>
Resolves an already-registered shape value by symbol.
Sourcepub fn resolve_codec(&self, symbol: &Symbol) -> Result<Value>
pub fn resolve_codec(&self, symbol: &Symbol) -> Result<Value>
Resolves an already-registered codec value by symbol.
Sourcepub fn resolve_number_domain(&self, symbol: &Symbol) -> Result<Value>
pub fn resolve_number_domain(&self, symbol: &Symbol) -> Result<Value>
Resolves an already-registered number-domain value by symbol.
Sourcepub fn resolve_value(&self, symbol: &Symbol) -> Result<Value>
pub fn resolve_value(&self, symbol: &Symbol) -> Result<Value>
Resolves an already-registered plain value by symbol.
Auto Trait Implementations§
impl !RefUnwindSafe for LoadCx
impl !UnwindSafe for LoadCx
impl Freeze for LoadCx
impl Send for LoadCx
impl Sync for LoadCx
impl Unpin for LoadCx
impl UnsafeUnpin for LoadCx
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