pub struct Constant<T>(pub T);
Trait Implementations
type Output = Add<Self, Rhs>
fn add(self, other: Rhs) -> Self::Output
type Output = Sub<Self, Rhs>
fn sub(self, other: Rhs) -> Self::Output
type Output = Mul<Self, Rhs>
fn mul(self, other: Rhs) -> Self::Output
type Output = Div<Self, Rhs>
fn div(self, other: Rhs) -> Self::Output
type Element = T
type Values = Repeat<T>
type Rev = Self
fn rev(self) -> Self
fn sum<T>(self) -> Self::Element where Self: Sized + Expression<Element=T>, T: Zero + Add<T, Output=T>
fn zip<E2: Expression>(self, e: E2) -> Zip<Self, E2> where Self: Sized
fn map<O, F: FnMut(Self::Element) -> O>(self, f: F) -> Map<Self, F> where Self: Sized
fn switch<T, E>(self, then: T, else_: E) -> Switch<Self, T, E> where Self: Sized + Expression<Element=bool>, T: Expression, E: Expression<Element=T::Element>
fn eq<E>(self, other: E) -> Eq<Self, E> where Self: Sized, E: Expression, Self::Element: PartialEq<E::Element>
fn ne<E>(self, other: E) -> Ne<Self, E> where Self: Sized, E: Expression, Self::Element: PartialEq<E::Element>
fn lt<E>(self, other: E) -> Lt<Self, E> where Self: Sized, E: Expression, Self::Element: PartialOrd<E::Element>
fn le<E>(self, other: E) -> Le<Self, E> where Self: Sized, E: Expression, Self::Element: PartialOrd<E::Element>
fn gt<E>(self, other: E) -> Gt<Self, E> where Self: Sized, E: Expression, Self::Element: PartialOrd<E::Element>
fn ge<E>(self, other: E) -> Ge<Self, E> where Self: Sized, E: Expression, Self::Element: PartialOrd<E::Element>
Derived Implementations