pub struct Vari {
pub a: Operand,
pub b: Operand,
/* private fields */
}
Fields§
§a: Operand
§b: Operand
Implementations§
Source§impl Vari
impl Vari
pub fn new( v: Real, oa: Operand, ob: Operand, op: Box<dyn Fn(&Vari)>, mem: Rc<RefCell<ChainStack>>, ) -> Vari
pub fn val(&self) -> Real
pub fn adj(&self) -> Real
pub fn set_adj(&mut self, v: Real)
pub fn init_dependent(&mut self)
pub fn set_zero_adjoint(&mut self)
pub fn chain(&self)
pub fn mem(&self) -> Rc<RefCell<ChainStack>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vari
impl !RefUnwindSafe for Vari
impl !Send for Vari
impl !Sync for Vari
impl Unpin for Vari
impl !UnwindSafe for Vari
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