pub trait Binary<D: Dialect> {
// Required method
fn format_scalar<Lhs, Rhs>(
f: &mut Formatter<'_>,
lhs: Lhs,
rhs: Rhs,
item: Item<D>,
) -> Result
where Lhs: Component<D>,
Rhs: Component<D>;
// Provided methods
fn format(
f: &mut Formatter<'_>,
lhs: &Variable<D>,
rhs: &Variable<D>,
out: &Variable<D>,
) -> Result { ... }
fn unroll_vec(
f: &mut Formatter<'_>,
lhs: &Variable<D>,
rhs: &Variable<D>,
out: &Variable<D>,
) -> Result { ... }
}
Required Methods§
fn format_scalar<Lhs, Rhs>( f: &mut Formatter<'_>, lhs: Lhs, rhs: Rhs, item: Item<D>, ) -> Result
Provided Methods§
fn format( f: &mut Formatter<'_>, lhs: &Variable<D>, rhs: &Variable<D>, out: &Variable<D>, ) -> Result
fn unroll_vec( f: &mut Formatter<'_>, lhs: &Variable<D>, rhs: &Variable<D>, out: &Variable<D>, ) -> Result
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.