Skip to main content

Obj

Enum Obj 

Source
pub enum Obj {
Show 50 variants Atom(AtomObj), FnObj(FnObj), Number(Number), Add(Add), Sub(Sub), Mul(Mul), Div(Div), Mod(Mod), Pow(Pow), Abs(Abs), Log(Log), Max(Max), Min(Min), Union(Union), Intersect(Intersect), SetMinus(SetMinus), SetDiff(SetDiff), Cup(Cup), Cap(Cap), PowerSet(PowerSet), ListSet(ListSet), SetBuilder(SetBuilder), FnSet(FnSet), AnonymousFn(AnonymousFn), Cart(Cart), CartDim(CartDim), Proj(Proj), TupleDim(TupleDim), Tuple(Tuple), Count(Count), Sum(Sum), Product(Product), Range(Range), ClosedRange(ClosedRange), FiniteSeqSet(FiniteSeqSet), SeqSet(SeqSet), FiniteSeqListObj(FiniteSeqListObj), Choose(Choose), ObjAtIndex(ObjAtIndex), StandardSet(StandardSet), FamilyObj(FamilyObj), MatrixSet(MatrixSet), MatrixListObj(MatrixListObj), MatrixAdd(MatrixAdd), MatrixSub(MatrixSub), MatrixMul(MatrixMul), MatrixScalarMul(MatrixScalarMul), MatrixPow(MatrixPow), StructObj(StructObj), ObjAsStructInstanceWithFieldAccess(ObjAsStructInstanceWithFieldAccess),
}

Variants§

§

Atom(AtomObj)

§

FnObj(FnObj)

§

Number(Number)

§

Add(Add)

§

Sub(Sub)

§

Mul(Mul)

§

Div(Div)

§

Mod(Mod)

§

Pow(Pow)

§

Abs(Abs)

§

Log(Log)

§

Max(Max)

§

Min(Min)

§

Union(Union)

§

Intersect(Intersect)

§

SetMinus(SetMinus)

§

SetDiff(SetDiff)

§

Cup(Cup)

§

Cap(Cap)

§

PowerSet(PowerSet)

§

ListSet(ListSet)

§

SetBuilder(SetBuilder)

§

FnSet(FnSet)

§

AnonymousFn(AnonymousFn)

§

Cart(Cart)

§

CartDim(CartDim)

§

Proj(Proj)

§

TupleDim(TupleDim)

§

Tuple(Tuple)

§

Count(Count)

§

Sum(Sum)

§

Product(Product)

§

Range(Range)

§

ClosedRange(ClosedRange)

§

FiniteSeqSet(FiniteSeqSet)

§

SeqSet(SeqSet)

§

FiniteSeqListObj(FiniteSeqListObj)

§

Choose(Choose)

§

ObjAtIndex(ObjAtIndex)

§

StandardSet(StandardSet)

§

FamilyObj(FamilyObj)

§

MatrixSet(MatrixSet)

§

MatrixListObj(MatrixListObj)

§

MatrixAdd(MatrixAdd)

§

MatrixSub(MatrixSub)

§

MatrixMul(MatrixMul)

§

MatrixScalarMul(MatrixScalarMul)

§

MatrixPow(MatrixPow)

§

StructObj(StructObj)

§

ObjAsStructInstanceWithFieldAccess(ObjAsStructInstanceWithFieldAccess)

Implementations§

Source§

impl Obj

Source

pub fn fmt_with_precedence( &self, f: &mut Formatter<'_>, parent_precedent: u8, ) -> Result

Precedence-aware display: add parens when a child binds looser than the parent (e.g. + under *). For same-precedence +/-, pass a stricter bound (2) on Sub’s sides and Add’s right so a - (b + c) and a + (b - c) do not print as the ambiguous a - b + c / a + b - c.

Source

pub fn replace_bound_identifier(self, from: &str, to: &str) -> Obj

Source§

impl Obj

Source§

impl Obj

Source§

impl Obj

Source

pub fn to_latex_string(&self) -> String

Trait Implementations§

Source§

impl Clone for Obj

Source§

fn clone(&self) -> Obj

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Display for Obj

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Abs> for Obj

Source§

fn from(a: Abs) -> Self

Converts to this type from the input type.
Source§

impl From<Add> for Obj

Source§

fn from(a: Add) -> Self

Converts to this type from the input type.
Source§

impl From<AnonymousFn> for Obj

Source§

fn from(af: AnonymousFn) -> Self

Converts to this type from the input type.
Source§

impl From<AtomObj> for Obj

Source§

fn from(a: AtomObj) -> Self

Converts to this type from the input type.
Source§

impl From<ByInducFreeParamObj> for Obj

Source§

fn from(v: ByInducFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<Cap> for Obj

Source§

fn from(c: Cap) -> Self

Converts to this type from the input type.
Source§

impl From<Cart> for Obj

Source§

fn from(c: Cart) -> Self

Converts to this type from the input type.
Source§

impl From<CartDim> for Obj

Source§

fn from(c: CartDim) -> Self

Converts to this type from the input type.
Source§

impl From<Choose> for Obj

Source§

fn from(c: Choose) -> Self

Converts to this type from the input type.
Source§

impl From<ClosedRange> for Obj

Source§

fn from(r: ClosedRange) -> Self

Converts to this type from the input type.
Source§

impl From<Count> for Obj

Source§

fn from(c: Count) -> Self

Converts to this type from the input type.
Source§

impl From<Cup> for Obj

Source§

fn from(c: Cup) -> Self

Converts to this type from the input type.
Source§

impl From<DefAlgoFreeParamObj> for Obj

Source§

fn from(v: DefAlgoFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<DefHeaderFreeParamObj> for Obj

Source§

fn from(v: DefHeaderFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<DefStructFieldFreeParamObj> for Obj

Source§

fn from(v: DefStructFieldFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<Div> for Obj

Source§

fn from(d: Div) -> Self

Converts to this type from the input type.
Source§

impl From<ExistFreeParamObj> for Obj

Source§

fn from(v: ExistFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<FamilyObj> for Obj

Source§

fn from(f: FamilyObj) -> Self

Converts to this type from the input type.
Source§

impl From<FiniteSeqListObj> for Obj

Source§

fn from(v: FiniteSeqListObj) -> Self

Converts to this type from the input type.
Source§

impl From<FiniteSeqSet> for Obj

Source§

fn from(v: FiniteSeqSet) -> Self

Converts to this type from the input type.
Source§

impl From<FnObj> for Obj

Source§

fn from(f: FnObj) -> Self

Converts to this type from the input type.
Source§

impl From<FnObjHead> for Obj

Source§

fn from(h: FnObjHead) -> Self

Converts to this type from the input type.
Source§

impl From<FnSet> for Obj

Source§

fn from(fs: FnSet) -> Self

Converts to this type from the input type.
Source§

impl From<FnSetFreeParamObj> for Obj

Source§

fn from(v: FnSetFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<ForallFreeParamObj> for Obj

Source§

fn from(v: ForallFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<Identifier> for Obj

Source§

fn from(id: Identifier) -> Self

Converts to this type from the input type.
Source§

impl From<IdentifierWithMod> for Obj

Source§

fn from(m: IdentifierWithMod) -> Self

Converts to this type from the input type.
Source§

impl From<Intersect> for Obj

Source§

fn from(i: Intersect) -> Self

Converts to this type from the input type.
Source§

impl From<ListSet> for Obj

Source§

fn from(l: ListSet) -> Self

Converts to this type from the input type.
Source§

impl From<Log> for Obj

Source§

fn from(l: Log) -> Self

Converts to this type from the input type.
Source§

impl From<MatrixAdd> for Obj

Source§

fn from(m: MatrixAdd) -> Self

Converts to this type from the input type.
Source§

impl From<MatrixListObj> for Obj

Source§

fn from(v: MatrixListObj) -> Self

Converts to this type from the input type.
Source§

impl From<MatrixMul> for Obj

Source§

fn from(m: MatrixMul) -> Self

Converts to this type from the input type.
Source§

impl From<MatrixPow> for Obj

Source§

fn from(m: MatrixPow) -> Self

Converts to this type from the input type.
Source§

impl From<MatrixScalarMul> for Obj

Source§

fn from(m: MatrixScalarMul) -> Self

Converts to this type from the input type.
Source§

impl From<MatrixSet> for Obj

Source§

fn from(v: MatrixSet) -> Self

Converts to this type from the input type.
Source§

impl From<MatrixSub> for Obj

Source§

fn from(m: MatrixSub) -> Self

Converts to this type from the input type.
Source§

impl From<Max> for Obj

Source§

fn from(m: Max) -> Self

Converts to this type from the input type.
Source§

impl From<Min> for Obj

Source§

fn from(m: Min) -> Self

Converts to this type from the input type.
Source§

impl From<Mod> for Obj

Source§

fn from(m: Mod) -> Self

Converts to this type from the input type.
Source§

impl From<Mul> for Obj

Source§

fn from(m: Mul) -> Self

Converts to this type from the input type.
Source§

impl From<Number> for Obj

Source§

fn from(n: Number) -> Self

Converts to this type from the input type.
Source§

impl From<ObjAsStructInstanceWithFieldAccess> for Obj

Source§

fn from(s: ObjAsStructInstanceWithFieldAccess) -> Self

Converts to this type from the input type.
Source§

impl From<ObjAtIndex> for Obj

Source§

fn from(o: ObjAtIndex) -> Self

Converts to this type from the input type.
Source§

impl From<Pow> for Obj

Source§

fn from(p: Pow) -> Self

Converts to this type from the input type.
Source§

impl From<PowerSet> for Obj

Source§

fn from(p: PowerSet) -> Self

Converts to this type from the input type.
Source§

impl From<Product> for Obj

Source§

fn from(p: Product) -> Self

Converts to this type from the input type.
Source§

impl From<Proj> for Obj

Source§

fn from(p: Proj) -> Self

Converts to this type from the input type.
Source§

impl From<Range> for Obj

Source§

fn from(r: Range) -> Self

Converts to this type from the input type.
Source§

impl From<SeqSet> for Obj

Source§

fn from(v: SeqSet) -> Self

Converts to this type from the input type.
Source§

impl From<SetBuilder> for Obj

Source§

fn from(s: SetBuilder) -> Self

Converts to this type from the input type.
Source§

impl From<SetBuilderFreeParamObj> for Obj

Source§

fn from(v: SetBuilderFreeParamObj) -> Self

Converts to this type from the input type.
Source§

impl From<SetDiff> for Obj

Source§

fn from(s: SetDiff) -> Self

Converts to this type from the input type.
Source§

impl From<SetMinus> for Obj

Source§

fn from(s: SetMinus) -> Self

Converts to this type from the input type.
Source§

impl From<StandardSet> for Obj

Source§

fn from(s: StandardSet) -> Self

Converts to this type from the input type.
Source§

impl From<StructObj> for Obj

Source§

fn from(s: StructObj) -> Self

Converts to this type from the input type.
Source§

impl From<Sub> for Obj

Source§

fn from(s: Sub) -> Self

Converts to this type from the input type.
Source§

impl From<Sum> for Obj

Source§

fn from(s: Sum) -> Self

Converts to this type from the input type.
Source§

impl From<Tuple> for Obj

Source§

fn from(t: Tuple) -> Self

Converts to this type from the input type.
Source§

impl From<TupleDim> for Obj

Source§

fn from(t: TupleDim) -> Self

Converts to this type from the input type.
Source§

impl From<Union> for Obj

Source§

fn from(u: Union) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for Obj

Source§

fn from(n: usize) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Obj

§

impl RefUnwindSafe for Obj

§

impl !Send for Obj

§

impl !Sync for Obj

§

impl Unpin for Obj

§

impl UnsafeUnpin for Obj

§

impl UnwindSafe for Obj

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.