pub struct Shared<T>(pub Rc<RefCell<T>>);Tuple Fields§
§0: Rc<RefCell<T>>Implementations§
Trait Implementations§
fn len(&self, args: Args) -> usize
fn evaluate_index( &self, args: Args, index: usize, ) -> <Self::Output as Index<usize>>::Output
fn find_min( &self, args: Args, ) -> (usize, <Self::Output as Index<usize>>::Output)
fn find_max( &self, args: Args, ) -> (usize, <Self::Output as Index<usize>>::Output)
fn expected_value<I: IntoIterator<Item = f64>>(&self, args: Args, ps: I) -> f64
Source§fn weights_view(&self) -> WeightsView<'_>
fn weights_view(&self) -> WeightsView<'_>
Return a read-only view of the weights.
Source§fn weights_view_mut(&mut self) -> WeightsViewMut<'_>
fn weights_view_mut(&mut self) -> WeightsViewMut<'_>
Return a mutable view of the weights.
Source§fn weights_dim(&self) -> (usize, usize)
fn weights_dim(&self) -> (usize, usize)
Return the dimensions of the weight matrix.
fn n_weights(&self) -> usize
Auto Trait Implementations§
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