pub struct BinaryTensorPacketRef<'a> {
pub shape: Vec<i64>,
pub dtype: TensorDtype,
pub data: Cow<'a, [u8]>,
}Fields§
§shape: Vec<i64>§dtype: TensorDtype§data: Cow<'a, [u8]>Implementations§
Source§impl<'a> BinaryTensorPacketRef<'a>
impl<'a> BinaryTensorPacketRef<'a>
pub fn to_owned(self) -> BinaryTensorPacket
Trait Implementations§
Source§impl<'a> Clone for BinaryTensorPacketRef<'a>
impl<'a> Clone for BinaryTensorPacketRef<'a>
Source§fn clone(&self) -> BinaryTensorPacketRef<'a>
fn clone(&self) -> BinaryTensorPacketRef<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for BinaryTensorPacketRef<'a>
impl<'a> Debug for BinaryTensorPacketRef<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for BinaryTensorPacketRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for BinaryTensorPacketRef<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a BinaryTensorPacket> for BinaryTensorPacketRef<'a>
impl<'a> From<&'a BinaryTensorPacket> for BinaryTensorPacketRef<'a>
Source§fn from(packet: &'a BinaryTensorPacket) -> Self
fn from(packet: &'a BinaryTensorPacket) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for BinaryTensorPacketRef<'a>
impl<'a> RefUnwindSafe for BinaryTensorPacketRef<'a>
impl<'a> Send for BinaryTensorPacketRef<'a>
impl<'a> Sync for BinaryTensorPacketRef<'a>
impl<'a> Unpin for BinaryTensorPacketRef<'a>
impl<'a> UnsafeUnpin for BinaryTensorPacketRef<'a>
impl<'a> UnwindSafe for BinaryTensorPacketRef<'a>
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