[−][src]Enum flag_algebra::expr::Expr
Expressions that represent a computation in flag algebras.
Variants
Num(Rc<N>)Var(usize)Implementations
impl<N, F> Expr<N, F>[src]
pub fn add(a: Self, b: Self) -> Self[src]
pub fn mul(a: Self, b: Self) -> Self[src]
pub fn neg(self) -> Self[src]
pub fn sub(a: Self, b: Self) -> Self[src]
pub fn unlab(self) -> Self[src]
pub fn named(self, name: String) -> Self[src]
pub fn unknown(name: String) -> Self[src]
pub fn num(n: &N) -> Self where
N: Num + Clone, [src]
N: Num + Clone,
pub fn latex(&self, names: &mut Names<N, F>) -> String where
N: Display,
F: Ord + Flag, [src]
N: Display,
F: Ord + Flag,
impl<N, F> Expr<N, F> where
N: Num + Neg<Output = N> + Clone + FromPrimitive + ScalarOperand + Display,
F: Flag, [src]
N: Num + Neg<Output = N> + Clone + FromPrimitive + ScalarOperand + Display,
F: Flag,
pub fn eval(&self) -> QFlag<N, F>[src]
pub fn eval_with_context(&self, range: &VarRange<F>, id: usize) -> QFlag<N, F>[src]
impl<N, F> Expr<N, F> where
N: Clone,
F: Clone, [src]
N: Clone,
F: Clone,
pub fn substitute_option(
&self,
range_opt: &Option<VarRange<F>>,
id: usize
) -> Self[src]
&self,
range_opt: &Option<VarRange<F>>,
id: usize
) -> Self
pub fn substitute(&self, range: &VarRange<F>, id: usize) -> Self[src]
impl<N, F> Expr<N, F>[src]
Trait Implementations
impl<N, F> Clone for Expr<N, F>[src]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<N, F> Debug for Expr<N, F> where
F: Debug,
N: Debug, [src]
F: Debug,
N: Debug,
impl<N, F> Display for Expr<N, F> where
N: Display, [src]
N: Display,
Auto Trait Implementations
impl<N, F> !RefUnwindSafe for Expr<N, F>
impl<N, F> !Send for Expr<N, F>
impl<N, F> !Sync for Expr<N, F>
impl<N, F> Unpin for Expr<N, F> where
F: Unpin,
F: Unpin,
impl<N, F> !UnwindSafe for Expr<N, F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,