pub struct PanicSignatureInfo {
pub err_variant: ConcreteVariant,
pub actual_return_ty: TypeId,
pub always_panic: bool,
/* private fields */
}Fields§
§err_variant: ConcreteVariantThe Err() variant.
actual_return_ty: TypeIdThe PanicResult concrete type - the new return type of the function.
always_panic: boolDoes the function always panic.
Note that if it does - the function returned type is always (Panic, Array<felt252>).
Implementations§
Source§impl PanicSignatureInfo
impl PanicSignatureInfo
pub fn new(db: &dyn LoweringGroup, signature: &Signature) -> Self
Auto Trait Implementations§
impl Freeze for PanicSignatureInfo
impl RefUnwindSafe for PanicSignatureInfo
impl Send for PanicSignatureInfo
impl Sync for PanicSignatureInfo
impl Unpin for PanicSignatureInfo
impl UnwindSafe for PanicSignatureInfo
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more