pub struct Dcg<T> { /* private fields */ }
Implementations§
Source§impl<T> Dcg<T>
impl<T> Dcg<T>
pub fn new() -> Self
pub fn binary( &mut self, lhs: NodeIndex, rhs: NodeIndex, op: impl Into<BinaryOp>, ) -> NodeIndex
pub fn constant(&mut self, value: T) -> NodeIndex
pub fn get(&self, index: NodeIndex) -> Option<&Node<T>>
pub fn include(&mut self, node: impl Into<Node<T>>) -> NodeIndex
pub fn input(&mut self, param: bool, value: T) -> NodeIndex
pub fn op( &mut self, inputs: impl IntoIterator<Item = NodeIndex>, op: impl Into<Op>, ) -> NodeIndex
pub fn remove(&mut self, index: NodeIndex) -> Option<Node<T>>
pub fn unary(&mut self, input: NodeIndex, op: impl Into<UnaryOp>) -> NodeIndex
pub fn variable(&mut self, value: T) -> NodeIndex
pub fn add(&mut self, lhs: NodeIndex, rhs: NodeIndex) -> NodeIndex
pub fn div(&mut self, lhs: NodeIndex, rhs: NodeIndex) -> NodeIndex
pub fn mul(&mut self, lhs: NodeIndex, rhs: NodeIndex) -> NodeIndex
pub fn pow(&mut self, lhs: NodeIndex, rhs: NodeIndex) -> NodeIndex
pub fn rem(&mut self, lhs: NodeIndex, rhs: NodeIndex) -> NodeIndex
pub fn sub(&mut self, lhs: NodeIndex, rhs: NodeIndex) -> NodeIndex
pub fn abs(&mut self, recv: NodeIndex) -> NodeIndex
pub fn acos(&mut self, recv: NodeIndex) -> NodeIndex
pub fn acosh(&mut self, recv: NodeIndex) -> NodeIndex
pub fn asin(&mut self, recv: NodeIndex) -> NodeIndex
pub fn asinh(&mut self, recv: NodeIndex) -> NodeIndex
pub fn atan(&mut self, recv: NodeIndex) -> NodeIndex
pub fn atanh(&mut self, recv: NodeIndex) -> NodeIndex
pub fn ceil(&mut self, recv: NodeIndex) -> NodeIndex
pub fn cos(&mut self, recv: NodeIndex) -> NodeIndex
pub fn cosh(&mut self, recv: NodeIndex) -> NodeIndex
pub fn exp(&mut self, recv: NodeIndex) -> NodeIndex
pub fn floor(&mut self, recv: NodeIndex) -> NodeIndex
pub fn inv(&mut self, recv: NodeIndex) -> NodeIndex
pub fn ln(&mut self, recv: NodeIndex) -> NodeIndex
pub fn neg(&mut self, recv: NodeIndex) -> NodeIndex
pub fn recip(&mut self, recv: NodeIndex) -> NodeIndex
pub fn sin(&mut self, recv: NodeIndex) -> NodeIndex
pub fn sinh(&mut self, recv: NodeIndex) -> NodeIndex
pub fn sqr(&mut self, recv: NodeIndex) -> NodeIndex
pub fn sqrt(&mut self, recv: NodeIndex) -> NodeIndex
pub fn tan(&mut self, recv: NodeIndex) -> NodeIndex
pub fn tanh(&mut self, recv: NodeIndex) -> NodeIndex
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Dcg<T>
impl<T> RefUnwindSafe for Dcg<T>where
T: RefUnwindSafe,
impl<T> Send for Dcg<T>where
T: Send,
impl<T> Sync for Dcg<T>where
T: Sync,
impl<T> Unpin for Dcg<T>where
T: Unpin,
impl<T> UnwindSafe for Dcg<T>where
T: UnwindSafe,
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