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