pub struct BaseTyS(/* private fields */);Expand description
Implementations§
Source§impl BaseTyS
impl BaseTyS
Sourcepub fn topvar(name: TopVarName) -> Self
pub fn topvar(name: TopVarName) -> Self
Smart constructor for BaseTyS, BaseTyS_::TopVar case.
Sourcepub fn object(object_type: ObType) -> Self
pub fn object(object_type: ObType) -> Self
Smart constructor for BaseTyS, BaseTyS_::Object case.
Sourcepub fn morphism(morphism_type: MorType, dom: BaseTmS, cod: BaseTmS) -> Self
pub fn morphism(morphism_type: MorType, dom: BaseTmS, cod: BaseTmS) -> Self
Smart constructor for BaseTyS, BaseTyS_::Morphism case.
Sourcepub fn record(fields: Row<BaseTyS>) -> Self
pub fn record(fields: Row<BaseTyS>) -> Self
Smart constructor for BaseTyS, BaseTyS_::Record case.
Sourcepub fn sing(ty: BaseTyS, tm: BaseTmS) -> Self
pub fn sing(ty: BaseTyS, tm: BaseTmS) -> Self
Smart constructor for BaseTyS, BaseTyS_::Sing case.
Sourcepub fn id(ty: BaseTyS, tm1: BaseTmS, tm2: BaseTmS) -> Self
pub fn id(ty: BaseTyS, tm1: BaseTmS, tm2: BaseTmS) -> Self
Smart constructor for BaseTyS, BaseTyS_::Id case.
Sourcepub fn specialize(
ty: BaseTyS,
specializations: Vec<(Vec<(FieldName, LabelSegment)>, BaseTyS)>,
) -> Self
pub fn specialize( ty: BaseTyS, specializations: Vec<(Vec<(FieldName, LabelSegment)>, BaseTyS)>, ) -> Self
Smart constructor for BaseTyS, BaseTyS_::Specialize case.
Sourcepub fn meta(mv: MetaVar) -> Self
pub fn meta(mv: MetaVar) -> Self
Smart constructor for BaseTyS, BaseTyS_::Meta case.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BaseTyS
impl RefUnwindSafe for BaseTyS
impl !Send for BaseTyS
impl !Sync for BaseTyS
impl Unpin for BaseTyS
impl UnwindSafe for BaseTyS
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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<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>
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.