pub struct TensorSpec {
pub symbol: String,
pub unit_symbol: String,
pub associativity: Associativity,
}Expand description
Specification for monoidal tensor product.
Fields§
§symbol: StringSymbol for tensor (default: “⊗”)
unit_symbol: StringSymbol for unit (default: “I”)
associativity: AssociativityWhether associativity is strict or weak
Trait Implementations§
Source§impl Clone for TensorSpec
impl Clone for TensorSpec
Source§fn clone(&self) -> TensorSpec
fn clone(&self) -> TensorSpec
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 TensorSpec
impl Debug for TensorSpec
Source§impl Default for TensorSpec
impl Default for TensorSpec
Source§impl PartialEq for TensorSpec
impl PartialEq for TensorSpec
impl Eq for TensorSpec
impl StructuralPartialEq for TensorSpec
Auto Trait Implementations§
impl Freeze for TensorSpec
impl RefUnwindSafe for TensorSpec
impl Send for TensorSpec
impl Sync for TensorSpec
impl Unpin for TensorSpec
impl UnwindSafe for TensorSpec
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