pub struct Quoter;
Expand description
A quoter.
Quotation is the process of transformation syntax or values into notation. Unlike elaboration, quotation is infallible.
Trait Implementations§
Source§impl CanQuote<ModeApp<QualifiedName>, ObType> for Quoter
Quotes an object type in a modal theory.
impl CanQuote<ModeApp<QualifiedName>, ObType> for Quoter
Quotes an object type in a modal theory.
Source§fn quote(&self, app: &ModalObType) -> ObType
fn quote(&self, app: &ModalObType) -> ObType
Transform syntax or value into notation.
Source§impl CanQuote<Path<QualifiedName, QualifiedName>, Mor> for Quoter
Quotes a morphism in a model of a discrete double theory.
impl CanQuote<Path<QualifiedName, QualifiedName>, Mor> for Quoter
Quotes a morphism in a model of a discrete double theory.
Source§fn quote(&self, path: &QualifiedPath) -> Mor
fn quote(&self, path: &QualifiedPath) -> Mor
Transform syntax or value into notation.
Source§impl CanQuote<Path<QualifiedName, QualifiedName>, MorType> for Quoter
Quotes a morphism type in a discrete double theory.
impl CanQuote<Path<QualifiedName, QualifiedName>, MorType> for Quoter
Quotes a morphism type in a discrete double theory.
Source§fn quote(&self, path: &QualifiedPath) -> MorType
fn quote(&self, path: &QualifiedPath) -> MorType
Transform syntax or value into notation.
Source§impl CanQuote<Path<TabOb, TabEdge>, Mor> for Quoter
Quotes a morphism in a model of a discrete tabulator theory.
impl CanQuote<Path<TabOb, TabEdge>, Mor> for Quoter
Quotes a morphism in a model of a discrete tabulator theory.
Source§impl CanQuote<QualifiedName, Ob> for Quoter
Quotes an object in a model of a discrete double theory.
impl CanQuote<QualifiedName, Ob> for Quoter
Quotes an object in a model of a discrete double theory.
Source§fn quote(&self, name: &QualifiedName) -> Ob
fn quote(&self, name: &QualifiedName) -> Ob
Transform syntax or value into notation.
Source§impl CanQuote<QualifiedName, ObOp> for Quoter
Quotes an object operation in a discrete double theory.
impl CanQuote<QualifiedName, ObOp> for Quoter
Quotes an object operation in a discrete double theory.
Source§fn quote(&self, name: &QualifiedName) -> ObOp
fn quote(&self, name: &QualifiedName) -> ObOp
Transform syntax or value into notation.
Source§impl CanQuote<QualifiedName, ObType> for Quoter
Quotes an object type in a discrete double theory.
impl CanQuote<QualifiedName, ObType> for Quoter
Quotes an object type in a discrete double theory.
Source§fn quote(&self, name: &QualifiedName) -> ObType
fn quote(&self, name: &QualifiedName) -> ObType
Transform syntax or value into notation.
Source§impl CanQuote<ShortPath<ModeApp<QualifiedName>, ModeApp<QualifiedName>>, MorType> for Quoter
Quotes a morphism type in a modal theory.
impl CanQuote<ShortPath<ModeApp<QualifiedName>, ModeApp<QualifiedName>>, MorType> for Quoter
Quotes a morphism type in a modal theory.
Source§fn quote(&self, mor_type: &ModalMorType) -> MorType
fn quote(&self, mor_type: &ModalMorType) -> MorType
Transform syntax or value into notation.
Source§impl CanQuote<TabMorType, MorType> for Quoter
Quotes a morphism type in a discrete tabulator theory.
impl CanQuote<TabMorType, MorType> for Quoter
Quotes a morphism type in a discrete tabulator theory.
Source§fn quote(&self, mor_type: &TabMorType) -> MorType
fn quote(&self, mor_type: &TabMorType) -> MorType
Transform syntax or value into notation.
Auto Trait Implementations§
impl Freeze for Quoter
impl RefUnwindSafe for Quoter
impl Send for Quoter
impl Sync for Quoter
impl Unpin for Quoter
impl UnwindSafe for Quoter
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
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>
Converts
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>
Converts
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<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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.