pub enum FileItem {
Tensor(FileTensor),
Composite(FileComposite),
}Expand description
One member of a composite read from a file: a plain tensor or a nested composite.
Variants§
Implementations§
Source§impl FileItem
impl FileItem
Sourcepub fn descriptor(&self) -> &TensorDescriptor
pub fn descriptor(&self) -> &TensorDescriptor
The item’s governing descriptor: the tensor’s descriptor, or the composite head.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileItem
impl RefUnwindSafe for FileItem
impl Send for FileItem
impl Sync for FileItem
impl Unpin for FileItem
impl UnsafeUnpin for FileItem
impl UnwindSafe for FileItem
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