Skip to main content

MayPanicTrait

Trait MayPanicTrait 

Source
pub trait MayPanicTrait<'db>: Database {
    // Provided method
    fn function_with_body_may_panic(
        &'db self,
        function: ConcreteFunctionWithBodyId<'db>,
    ) -> Maybe<bool> { ... }
}
Expand description

A trait to add helper methods in LoweringGroup.

Provided Methods§

Source

fn function_with_body_may_panic( &'db self, function: ConcreteFunctionWithBodyId<'db>, ) -> Maybe<bool>

Returns whether a ConcreteFunctionWithBodyId may panic.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'db, T: Database + ?Sized> MayPanicTrait<'db> for T