Skip to main content

CubeSub

Trait CubeSub 

Source
pub trait CubeSub:
    Sub<Output = Self>
    + CubePrimitive
    + CubeType<ExpandType: SubExpand>
    + Sized {
    // Provided method
    fn __expand_sub(
        scope: &mut Scope,
        lhs: NativeExpand<Self>,
        rhs: NativeExpand<Self>,
    ) -> NativeExpand<Self> { ... }
}

Provided Methods§

Source

fn __expand_sub( scope: &mut Scope, lhs: NativeExpand<Self>, rhs: NativeExpand<Self>, ) -> NativeExpand<Self>

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§

Source§

impl<T: Sub<Output = T> + CubePrimitive> CubeSub for T