pub struct Ref<'t, T> { /* private fields */ }
Expand description
A reference to a any tensor
Trait Implementations§
source§impl<T: TensorType> TensorType for Ref<'_, T>
impl<T: TensorType> TensorType for Ref<'_, T>
source§type H = <T as TensorType>::H
type H = <T as TensorType>::H
The halide type of the tensor
impl<T: DeviceTensorType> DeviceTensorType for Ref<'_, T>
impl<T: HostTensorType> HostTensorType for Ref<'_, T>
impl<T: TensorType> RefTensorType for Ref<'_, T>
Auto Trait Implementations§
impl<'t, T> Freeze for Ref<'t, T>
impl<'t, T> RefUnwindSafe for Ref<'t, T>where
T: RefUnwindSafe,
impl<'t, T> Send for Ref<'t, T>where
T: Sync,
impl<'t, T> Sync for Ref<'t, T>where
T: Sync,
impl<'t, T> Unpin for Ref<'t, T>
impl<'t, T> UnwindSafe for Ref<'t, T>where
T: RefUnwindSafe,
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