Skip to main content

ScalarInt

Trait ScalarInt 

Source
pub trait ScalarInt<I>:
    Copy
    + Debug
    + Hash
    + Eq
where I: Interner,
{ // Required methods fn to_scalar(self) -> <I as Interner>::Scalar; fn try_from_uint(i: impl Into<u128>, size: Size) -> Option<Self>; }

Required Methods§

Source

fn to_scalar(self) -> <I as Interner>::Scalar

Source

fn try_from_uint(i: impl Into<u128>, size: Size) -> Option<Self>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<'tcx> ScalarInt<TyCtxt<'tcx>> for ScalarInt