Enum dfdx::nn::tensor_collection::ViewTensorMut
source · pub enum ViewTensorMut {}
Expand description
A TensorViewer that represents a &mut Tensor
Trait Implementations§
source§impl Debug for ViewTensorMut
impl Debug for ViewTensorMut
source§impl TensorViewer for ViewTensorMut
impl TensorViewer for ViewTensorMut
type View<'a, Mod: 'a> = &'a mut Mod
source§fn view_field<'a, Mod, Field, GetRef, GetMut>(
module: &'a mut &mut Mod,
_name: &str,
_get_ref: &mut GetRef,
get_mut: &mut GetMut
) -> &'a mut Fieldwhere
GetRef: FnMut(&Mod) -> &Field,
GetMut: FnMut(&mut Mod) -> &mut Field,
fn view_field<'a, Mod, Field, GetRef, GetMut>( module: &'a mut &mut Mod, _name: &str, _get_ref: &mut GetRef, get_mut: &mut GetMut ) -> &'a mut Fieldwhere GetRef: FnMut(&Mod) -> &Field, GetMut: FnMut(&mut Mod) -> &mut Field,
Given a view of a module, returns a view of one of that module’s fields
Auto Trait Implementations§
impl RefUnwindSafe for ViewTensorMut
impl Send for ViewTensorMut
impl Sync for ViewTensorMut
impl Unpin for ViewTensorMut
impl UnwindSafe for ViewTensorMut
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