pub struct Erased;Expand description
The dtype-erased representation.
§Examples
use tenferro_tensor::{Erased, Repr, Tensor};
let t = Tensor::from_vec_col_major(vec![1], vec![1.0_f64])?;
let same = <Erased as Repr>::wrap_value(t)?;
assert_eq!(same.shape(), &[1]);Trait Implementations§
impl Copy for Erased
Source§impl Repr for Erased
impl Repr for Erased
Source§type Write<'a> = TensorWrite<'a>
type Write<'a> = TensorWrite<'a>
The writable target type:
TensorWrite<'a> or TypedTensorWrite<'a, T>.Source§fn wrap_value(t: Tensor) -> Result<Tensor>
fn wrap_value(t: Tensor) -> Result<Tensor>
Wrap an erased result in this representation. Typed representations
perform a checked downcast. Read more
Source§fn erase_write<'a>(w: Self::Write<'a>) -> TensorWrite<'a>
fn erase_write<'a>(w: Self::Write<'a>) -> TensorWrite<'a>
Erase a writable target to
TensorWrite. Metadata only. Read moreAuto Trait Implementations§
impl Freeze for Erased
impl RefUnwindSafe for Erased
impl Send for Erased
impl Sync for Erased
impl Unpin for Erased
impl UnsafeUnpin for Erased
impl UnwindSafe for Erased
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