alloy::ops

Trait Midpoint

source
pub trait Midpoint {
    type Output;

    // Required method
    fn midpoint(&self, other: &Self) -> Self::Output;
}
Expand description

Computes a midpoint of two types.

Required Associated Types§

source

type Output

The output type

Required Methods§

source

fn midpoint(&self, other: &Self) -> Self::Output

Computes the midpoint of this type, returning the result

§Parameters
  • other - the other value

Object Safety§

This trait is not object safe.

Implementors§