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
impl Obj
Sourcepub fn fmt_with_precedence(
&self,
f: &mut Formatter<'_>,
parent_precedent: u8,
) -> Result
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.
pub fn replace_bound_identifier(self, from: &str, to: &str) -> Obj
Trait Implementations§
Source§impl From<AnonymousFn> for Obj
impl From<AnonymousFn> for Obj
Source§fn from(af: AnonymousFn) -> Self
fn from(af: AnonymousFn) -> Self
Converts to this type from the input type.
Source§impl From<ByInducFreeParamObj> for Obj
impl From<ByInducFreeParamObj> for Obj
Source§fn from(v: ByInducFreeParamObj) -> Self
fn from(v: ByInducFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<ClosedRange> for Obj
impl From<ClosedRange> for Obj
Source§fn from(r: ClosedRange) -> Self
fn from(r: ClosedRange) -> Self
Converts to this type from the input type.
Source§impl From<DefAlgoFreeParamObj> for Obj
impl From<DefAlgoFreeParamObj> for Obj
Source§fn from(v: DefAlgoFreeParamObj) -> Self
fn from(v: DefAlgoFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<DefHeaderFreeParamObj> for Obj
impl From<DefHeaderFreeParamObj> for Obj
Source§fn from(v: DefHeaderFreeParamObj) -> Self
fn from(v: DefHeaderFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<DefStructFieldFreeParamObj> for Obj
impl From<DefStructFieldFreeParamObj> for Obj
Source§fn from(v: DefStructFieldFreeParamObj) -> Self
fn from(v: DefStructFieldFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<ExistFreeParamObj> for Obj
impl From<ExistFreeParamObj> for Obj
Source§fn from(v: ExistFreeParamObj) -> Self
fn from(v: ExistFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<FiniteSeqListObj> for Obj
impl From<FiniteSeqListObj> for Obj
Source§fn from(v: FiniteSeqListObj) -> Self
fn from(v: FiniteSeqListObj) -> Self
Converts to this type from the input type.
Source§impl From<FiniteSeqSet> for Obj
impl From<FiniteSeqSet> for Obj
Source§fn from(v: FiniteSeqSet) -> Self
fn from(v: FiniteSeqSet) -> Self
Converts to this type from the input type.
Source§impl From<FnSetFreeParamObj> for Obj
impl From<FnSetFreeParamObj> for Obj
Source§fn from(v: FnSetFreeParamObj) -> Self
fn from(v: FnSetFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<ForallFreeParamObj> for Obj
impl From<ForallFreeParamObj> for Obj
Source§fn from(v: ForallFreeParamObj) -> Self
fn from(v: ForallFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for Obj
impl From<Identifier> for Obj
Source§fn from(id: Identifier) -> Self
fn from(id: Identifier) -> Self
Converts to this type from the input type.
Source§impl From<IdentifierWithMod> for Obj
impl From<IdentifierWithMod> for Obj
Source§fn from(m: IdentifierWithMod) -> Self
fn from(m: IdentifierWithMod) -> Self
Converts to this type from the input type.
Source§impl From<MatrixListObj> for Obj
impl From<MatrixListObj> for Obj
Source§fn from(v: MatrixListObj) -> Self
fn from(v: MatrixListObj) -> Self
Converts to this type from the input type.
Source§impl From<MatrixScalarMul> for Obj
impl From<MatrixScalarMul> for Obj
Source§fn from(m: MatrixScalarMul) -> Self
fn from(m: MatrixScalarMul) -> Self
Converts to this type from the input type.
Source§impl From<ObjAsStructInstanceWithFieldAccess> for Obj
impl From<ObjAsStructInstanceWithFieldAccess> for Obj
Source§fn from(s: ObjAsStructInstanceWithFieldAccess) -> Self
fn from(s: ObjAsStructInstanceWithFieldAccess) -> Self
Converts to this type from the input type.
Source§impl From<ObjAtIndex> for Obj
impl From<ObjAtIndex> for Obj
Source§fn from(o: ObjAtIndex) -> Self
fn from(o: ObjAtIndex) -> Self
Converts to this type from the input type.
Source§impl From<SetBuilder> for Obj
impl From<SetBuilder> for Obj
Source§fn from(s: SetBuilder) -> Self
fn from(s: SetBuilder) -> Self
Converts to this type from the input type.
Source§impl From<SetBuilderFreeParamObj> for Obj
impl From<SetBuilderFreeParamObj> for Obj
Source§fn from(v: SetBuilderFreeParamObj) -> Self
fn from(v: SetBuilderFreeParamObj) -> Self
Converts to this type from the input type.
Source§impl From<StandardSet> for Obj
impl From<StandardSet> for Obj
Source§fn from(s: StandardSet) -> Self
fn from(s: StandardSet) -> 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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more