pub enum HolographicEncoding {
Spectral,
RandomProjection,
LowRankDistributed,
}Expand description
Holographic encoding type.
Variants§
Spectral
DCT-based spectral encoding (best for smooth weights)
RandomProjection
Random projection hash (Johnson-Lindenstrauss)
LowRankDistributed
Low-rank distributed factorization (SVD-based)
Trait Implementations§
Source§impl Clone for HolographicEncoding
impl Clone for HolographicEncoding
Source§fn clone(&self) -> HolographicEncoding
fn clone(&self) -> HolographicEncoding
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 Debug for HolographicEncoding
impl Debug for HolographicEncoding
Source§impl From<HolographicEncoding> for HolographicEncoding
impl From<HolographicEncoding> for HolographicEncoding
Source§fn from(enc: RustHolographicEncoding) -> Self
fn from(enc: RustHolographicEncoding) -> Self
Converts to this type from the input type.
Source§impl From<HolographicEncoding> for HolographicEncoding
impl From<HolographicEncoding> for HolographicEncoding
Source§fn from(enc: HolographicEncoding) -> Self
fn from(enc: HolographicEncoding) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HolographicEncoding
impl PartialEq for HolographicEncoding
Source§impl PyClass for HolographicEncoding
impl PyClass for HolographicEncoding
Source§impl PyClassImpl for HolographicEncoding
impl PyClassImpl for HolographicEncoding
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<HolographicEncoding>
type ThreadChecker = SendablePyClass<HolographicEncoding>
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 HolographicEncoding
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a HolographicEncoding
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut HolographicEncoding
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut HolographicEncoding
Source§impl PyMethods<HolographicEncoding> for PyClassImplCollector<HolographicEncoding>
impl PyMethods<HolographicEncoding> for PyClassImplCollector<HolographicEncoding>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for HolographicEncoding
impl PyTypeInfo for HolographicEncoding
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 Copy for HolographicEncoding
impl StructuralPartialEq for HolographicEncoding
Auto Trait Implementations§
impl Freeze for HolographicEncoding
impl RefUnwindSafe for HolographicEncoding
impl Send for HolographicEncoding
impl Sync for HolographicEncoding
impl Unpin for HolographicEncoding
impl UnwindSafe for HolographicEncoding
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