pub struct HoloTensorHeaderPy {
pub encoding: HolographicEncoding,
pub total_fragments: u16,
pub min_fragments: u16,
pub shape: Vec<u64>,
pub original_size: u64,
pub seed: u64,
}Expand description
Header for a HoloTensor file.
Fields§
§encoding: HolographicEncoding§total_fragments: u16§min_fragments: u16§shape: Vec<u64>§original_size: u64§seed: u64Trait Implementations§
Source§impl Clone for HoloTensorHeaderPy
impl Clone for HoloTensorHeaderPy
Source§fn clone(&self) -> HoloTensorHeaderPy
fn clone(&self) -> HoloTensorHeaderPy
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 From<&HoloTensorHeader> for HoloTensorHeaderPy
impl From<&HoloTensorHeader> for HoloTensorHeaderPy
Source§fn from(h: &HoloTensorHeader) -> Self
fn from(h: &HoloTensorHeader) -> Self
Converts to this type from the input type.
Source§impl PyClass for HoloTensorHeaderPy
impl PyClass for HoloTensorHeaderPy
Source§impl PyClassImpl for HoloTensorHeaderPy
impl PyClassImpl for HoloTensorHeaderPy
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
Source§type ThreadChecker = SendablePyClass<HoloTensorHeaderPy>
type ThreadChecker = SendablePyClass<HoloTensorHeaderPy>
This handles following two situations: Read more
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a HoloTensorHeaderPy
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a HoloTensorHeaderPy
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut HoloTensorHeaderPy
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut HoloTensorHeaderPy
Source§impl PyMethods<HoloTensorHeaderPy> for PyClassImplCollector<HoloTensorHeaderPy>
impl PyMethods<HoloTensorHeaderPy> for PyClassImplCollector<HoloTensorHeaderPy>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for HoloTensorHeaderPy
impl PyTypeInfo for HoloTensorHeaderPy
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
impl DerefToPyAny for HoloTensorHeaderPy
Auto Trait Implementations§
impl Freeze for HoloTensorHeaderPy
impl RefUnwindSafe for HoloTensorHeaderPy
impl Send for HoloTensorHeaderPy
impl Sync for HoloTensorHeaderPy
impl Unpin for HoloTensorHeaderPy
impl UnwindSafe for HoloTensorHeaderPy
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