pub trait Promote<R>{
type Output: IsNumber;
// Required methods
fn checked_promote(&self, r: &R) -> Option<(Self::Output, Self::Output)>;
fn saturating_promote(&self, r: &R) -> (Self::Output, Self::Output);
fn wrapping_promote(&self, r: &R) -> (Self::Output, Self::Output);
}Required Associated Types§
Required Methods§
fn checked_promote(&self, r: &R) -> Option<(Self::Output, Self::Output)>
fn saturating_promote(&self, r: &R) -> (Self::Output, Self::Output)
fn wrapping_promote(&self, r: &R) -> (Self::Output, 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.