hax_frontend_exporter

Trait SExpect

source
pub trait SExpect: Sized {
    type Output;

    // Required method
    fn s_expect<'tcx, S: BaseState<'tcx>>(
        self,
        s: &S,
        message: &str,
    ) -> Self::Output;

    // Provided method
    fn s_unwrap<'tcx, S: BaseState<'tcx>>(self, s: &S) -> Self::Output { ... }
}

Required Associated Types§

Required Methods§

source

fn s_expect<'tcx, S: BaseState<'tcx>>( self, s: &S, message: &str, ) -> Self::Output

Provided Methods§

source

fn s_unwrap<'tcx, S: BaseState<'tcx>>(self, s: &S) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: Debug> SExpect for Option<T>

source§

type Output = T

source§

fn s_expect<'tcx, S: BaseState<'tcx>>( self, s: &S, message: &str, ) -> Self::Output

source§

impl<T: Debug, E: Debug> SExpect for Result<T, E>

source§

type Output = T

source§

fn s_expect<'tcx, S: BaseState<'tcx>>( self, s: &S, message: &str, ) -> Self::Output

Implementors§