pub struct LuaExceptionProfile { /* private fields */ }Expand description
Lua’s one adapter onto the shared exceptional-completion envelope.
Implementations§
Source§impl LuaExceptionProfile
impl LuaExceptionProfile
Sourcepub fn new(cx: &Cx) -> Result<Self>
pub fn new(cx: &Cx) -> Result<Self>
Builds the profile with Lua’s canonical class for arbitrary raised values.
Sourcepub fn raise(&self, value: Value, origin: Origin) -> Result<Raised>
pub fn raise(&self, value: Value, origin: Origin) -> Result<Raised>
Wraps a Lua value without copying or replacing its managed identity.
Sourcepub fn matches(
&self,
cx: &mut Cx,
raised: &Raised,
candidate: ClassRef,
budget: ClassMatchBudget,
) -> ClassMatchOutcome
pub fn matches( &self, cx: &mut Cx, raised: &Raised, candidate: ClassRef, budget: ClassMatchBudget, ) -> ClassMatchOutcome
Lua matches only the canonical raised-value class; it adds no widening predicate.
Auto Trait Implementations§
impl !RefUnwindSafe for LuaExceptionProfile
impl !UnwindSafe for LuaExceptionProfile
impl Freeze for LuaExceptionProfile
impl Send for LuaExceptionProfile
impl Sync for LuaExceptionProfile
impl Unpin for LuaExceptionProfile
impl UnsafeUnpin for LuaExceptionProfile
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