pub enum Obj {
Show 49 variants
Identifier(Identifier),
IdentifierWithMod(IdentifierWithMod),
FieldAccess(FieldAccess),
FieldAccessWithMod(FieldAccessWithMod),
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),
Cart(Cart),
CartDim(CartDim),
Proj(Proj),
TupleDim(TupleDim),
Tuple(Tuple),
Count(Count),
Range(Range),
ClosedRange(ClosedRange),
FiniteSeqSet(FiniteSeqSet),
SeqSet(SeqSet),
FiniteSeqListObj(FiniteSeqListObj),
Choose(Choose),
ObjAtIndex(ObjAtIndex),
StandardSet(StandardSet),
FamilyObj(FamilyObj),
StructObj(StructObj),
MatrixSet(MatrixSet),
MatrixListObj(MatrixListObj),
MatrixAdd(MatrixAdd),
MatrixSub(MatrixSub),
MatrixMul(MatrixMul),
MatrixScalarMul(MatrixScalarMul),
MatrixPow(MatrixPow),
}Variants§
Identifier(Identifier)
IdentifierWithMod(IdentifierWithMod)
FieldAccess(FieldAccess)
FieldAccessWithMod(FieldAccessWithMod)
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)
Cart(Cart)
CartDim(CartDim)
Proj(Proj)
TupleDim(TupleDim)
Tuple(Tuple)
Count(Count)
Range(Range)
ClosedRange(ClosedRange)
FiniteSeqSet(FiniteSeqSet)
SeqSet(SeqSet)
FiniteSeqListObj(FiniteSeqListObj)
Choose(Choose)
ObjAtIndex(ObjAtIndex)
StandardSet(StandardSet)
FamilyObj(FamilyObj)
StructObj(StructObj)
MatrixSet(MatrixSet)
MatrixListObj(MatrixListObj)
MatrixAdd(MatrixAdd)
MatrixSub(MatrixSub)
MatrixMul(MatrixMul)
MatrixScalarMul(MatrixScalarMul)
MatrixPow(MatrixPow)
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
按优先级输出:当子表达式优先级低于父节点时自动加括号,例如 ^ 下出现 + 则写成 (a + b)。
pub fn replace_bound_identifier(self, from: &str, to: &str) -> Obj
Trait Implementations§
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<FieldAccess> for Obj
impl From<FieldAccess> for Obj
Source§fn from(f: FieldAccess) -> Self
fn from(f: FieldAccess) -> Self
Converts to this type from the input type.
Source§impl From<FieldAccessWithMod> for Obj
impl From<FieldAccessWithMod> for Obj
Source§fn from(f: FieldAccessWithMod) -> Self
fn from(f: FieldAccessWithMod) -> 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<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<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<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