Cmpnt¶
- class zixy.container.cmpnts.Cmpnt(impl: ImplT, indexer: int | None = None)[source]¶
Bases:
ViewableItem[ImplT],Generic[ImplT,SpecT]A component.
A single component that may be an owning instance referencing a single element in a Rust-bound data object, or a view on an element in another collection.
- __init__(impl: ImplT, indexer: int | None = None)[source]¶
Initialize the component.
- Parameters:
impl – Rust-bound object storing the data.
indexer – Position within Rust-bound array at which the viewed component is stored. When
indexerisNone, theCmpntis an owning view on the sole element ofimpl.
- __mul__(rhs: CoeffT | Cmpnt[ImplT, SpecT]) Term[ImplT, SpecT, CoeffT] | Term[ImplT, SpecT, OtherCoeffT][source]¶
- Overloads:
self, rhs (Cmpnt[ImplT, SpecT]) → Term[ImplT, SpecT, OtherCoeffT]
self, rhs (CoeffT) → Term[ImplT, SpecT, CoeffT]
Return the product of
selfandrhs.
- aliases(other: Cmpnt[ImplT, SpecT]) bool[source]¶
Determine whether
selfis a view of the same component asother.