Skip to main content

QuantityDivOutput

Trait QuantityDivOutput 

Source
pub trait QuantityDivOutput<S: Scalar> {
    type Output;

    // Required method
    fn wrap(v: S) -> Self::Output;
}
Expand description

Converts a UnitDiv::Output token into the concrete type returned by Div.

  • SameDivOutputS (raw scalar; cancellation)
  • Any U: UnitQuantity<U, S>

Both implementations are coherent: SameDivOutput does not implement Unit, so the two impls are provably disjoint under Rust’s orphan rules.

Required Associated Types§

Source

type Output

The type that Div will return.

Required Methods§

Source

fn wrap(v: S) -> Self::Output

Wraps (or passes through) a raw scalar into the output type.

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.

Implementors§