pub struct Math {
pub entities: Vec<EntityKind>,
pub dst_var: OnceCell<EntityId>,
pub expr_record: Vec<Expr<()>>,
}
Fields§
§entities: Vec<EntityKind>
All found entities
dst_var: OnceCell<EntityId>
Dst variable
expr_record: Vec<Expr<()>>
Collected expressions
Implementations§
source§impl Math
impl Math
pub fn store(&mut self, expr: ExprKind, ty: ExprType) -> VarIndex
pub fn compare(&self, a: VarIndex, b: VarIndex) -> Ordering
sourcepub fn get_dst_var(&mut self) -> VarIndex
pub fn get_dst_var(&mut self) -> VarIndex
§Panics
Will never.
pub fn at(&self, index: VarIndex) -> &Expr<()>
pub fn add_point(&mut self) -> EntityId
pub fn add_real(&mut self) -> EntityId
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Math
impl !RefUnwindSafe for Math
impl Send for Math
impl !Sync for Math
impl Unpin for Math
impl UnwindSafe for Math
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneWithNode for Twhere
T: Clone,
impl<T> CloneWithNode for Twhere
T: Clone,
fn clone_with_node(&mut self) -> T
fn clone_without_node(&self) -> T
source§impl<T> Convert for T
impl<T> Convert for T
source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Errors Read more
source§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Errors Read more