pub struct CompositeWrite<'a> {
pub name: &'a str,
pub descriptor: &'a TensorDescriptor,
pub buffers: &'a [&'a [u8]],
}Expand description
One tensor of a flattened composite, ready to hand to
FileWriterCore::tensor.
§Examples
See flatten_composite.
Fields§
§name: &'a strThe tensor’s name, which becomes its footer-index entry.
descriptor: &'a TensorDescriptorIts descriptor. A composite head’s declares no buffers.
buffers: &'a [&'a [u8]]Its payloads, one slice per buffer handle. Empty for a head.
Auto Trait Implementations§
impl<'a> Freeze for CompositeWrite<'a>
impl<'a> RefUnwindSafe for CompositeWrite<'a>
impl<'a> Send for CompositeWrite<'a>
impl<'a> Sync for CompositeWrite<'a>
impl<'a> Unpin for CompositeWrite<'a>
impl<'a> UnsafeUnpin for CompositeWrite<'a>
impl<'a> UnwindSafe for CompositeWrite<'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