pub enum NormalizedInstanceTerm {
Discrete(DiscreteInstanceTerm),
Modal(ModalInstanceTerm),
}Expand description
The flat normal form of a single instance term, as produced by
normalize_instance_term: a composite model morphism applied to a base
of generators. Doctrine-specific because each has its own term type.
Variants§
Discrete(DiscreteInstanceTerm)
A term of an instance of a discrete double model.
Modal(ModalInstanceTerm)
A term of an instance of a modal double model (unital or non-unital).
Implementations§
Source§impl NormalizedInstanceTerm
impl NormalizedInstanceTerm
Sourcepub fn render(&self) -> String
pub fn render(&self) -> String
Renders the term in its flat normal form mor @ base, exposing the
single (composite) model morphism acting on a base of generators. A
term whose morphism is the identity (a pure base) is rendered as just
its base. This is deliberately distinct from the applicative
reconstruction used in instance summaries: the point of norm is to
show the composite, e.g. t(@tensor [s(x0), s(x0)]) normalizing to
(@tensor [s, s] ; t) @ @tensor [x0, x0].
Auto Trait Implementations§
impl Freeze for NormalizedInstanceTerm
impl RefUnwindSafe for NormalizedInstanceTerm
impl Send for NormalizedInstanceTerm
impl Sync for NormalizedInstanceTerm
impl Unpin for NormalizedInstanceTerm
impl UnwindSafe for NormalizedInstanceTerm
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.