Enum dfdx::nn::tensor_collection::ViewTensorRef
source · pub enum ViewTensorRef {}
Expand description
A TensorViewer that represents a &Tensor
Trait Implementations§
source§impl Debug for ViewTensorRef
impl Debug for ViewTensorRef
source§impl TensorViewer for ViewTensorRef
impl TensorViewer for ViewTensorRef
type View<'a, Mod: 'a> = &'a Mod
source§fn view_field<'a, Mod, Field, GetRef, GetMut>(
module: &'a mut &Mod,
_name: &str,
get_ref: &mut GetRef,
_get_mut: &mut GetMut
) -> &'a Fieldwhere
GetRef: FnMut(&Mod) -> &Field,
GetMut: FnMut(&mut Mod) -> &mut Field,
fn view_field<'a, Mod, Field, GetRef, GetMut>( module: &'a mut &Mod, _name: &str, get_ref: &mut GetRef, _get_mut: &mut GetMut ) -> &'a 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 ViewTensorRef
impl Send for ViewTensorRef
impl Sync for ViewTensorRef
impl Unpin for ViewTensorRef
impl UnwindSafe for ViewTensorRef
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