pub enum DblTheoryBox {
Discrete(Rc<DiscreteDblTheory>),
DiscreteTab(Rc<DiscreteTabTheory>),
Modal(Rc<ModalDblTheory>),
}
Expand description
Variants§
Discrete(Rc<DiscreteDblTheory>)
A discrete double theory.
DiscreteTab(Rc<DiscreteTabTheory>)
A discrete tabulator theory.
Modal(Rc<ModalDblTheory>)
A modal double theory.
Trait Implementations§
Source§impl From<Rc<DiscreteDblTheory>> for DblTheoryBox
impl From<Rc<DiscreteDblTheory>> for DblTheoryBox
Source§fn from(value: Rc<DiscreteDblTheory>) -> Self
fn from(value: Rc<DiscreteDblTheory>) -> Self
Converts to this type from the input type.
Source§impl From<Rc<DiscreteTabTheory>> for DblTheoryBox
impl From<Rc<DiscreteTabTheory>> for DblTheoryBox
Source§fn from(value: Rc<DiscreteTabTheory>) -> Self
fn from(value: Rc<DiscreteTabTheory>) -> Self
Converts to this type from the input type.
Source§impl From<Rc<ModalDblTheory>> for DblTheoryBox
impl From<Rc<ModalDblTheory>> for DblTheoryBox
Source§fn from(value: Rc<ModalDblTheory>) -> Self
fn from(value: Rc<ModalDblTheory>) -> Self
Converts to this type from the input type.
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime DblTheoryBox> for &'__deriveMoreLifetime Rc<DiscreteDblTheory>
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime DblTheoryBox> for &'__deriveMoreLifetime Rc<DiscreteDblTheory>
Source§type Error = TryIntoError<&'__deriveMoreLifetime DblTheoryBox>
type Error = TryIntoError<&'__deriveMoreLifetime DblTheoryBox>
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'__deriveMoreLifetime DblTheoryBox,
) -> Result<Self, TryIntoError<&'__deriveMoreLifetime DblTheoryBox>>
fn try_from( value: &'__deriveMoreLifetime DblTheoryBox, ) -> Result<Self, TryIntoError<&'__deriveMoreLifetime DblTheoryBox>>
Performs the conversion.
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime DblTheoryBox> for &'__deriveMoreLifetime Rc<DiscreteTabTheory>
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime DblTheoryBox> for &'__deriveMoreLifetime Rc<DiscreteTabTheory>
Source§type Error = TryIntoError<&'__deriveMoreLifetime DblTheoryBox>
type Error = TryIntoError<&'__deriveMoreLifetime DblTheoryBox>
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'__deriveMoreLifetime DblTheoryBox,
) -> Result<Self, TryIntoError<&'__deriveMoreLifetime DblTheoryBox>>
fn try_from( value: &'__deriveMoreLifetime DblTheoryBox, ) -> Result<Self, TryIntoError<&'__deriveMoreLifetime DblTheoryBox>>
Performs the conversion.
Source§impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime DblTheoryBox> for &'__deriveMoreLifetime Rc<ModalDblTheory>
impl<'__deriveMoreLifetime> TryFrom<&'__deriveMoreLifetime DblTheoryBox> for &'__deriveMoreLifetime Rc<ModalDblTheory>
Source§type Error = TryIntoError<&'__deriveMoreLifetime DblTheoryBox>
type Error = TryIntoError<&'__deriveMoreLifetime DblTheoryBox>
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'__deriveMoreLifetime DblTheoryBox,
) -> Result<Self, TryIntoError<&'__deriveMoreLifetime DblTheoryBox>>
fn try_from( value: &'__deriveMoreLifetime DblTheoryBox, ) -> Result<Self, TryIntoError<&'__deriveMoreLifetime DblTheoryBox>>
Performs the conversion.
Source§impl TryFrom<DblTheoryBox> for Rc<DiscreteDblTheory>
impl TryFrom<DblTheoryBox> for Rc<DiscreteDblTheory>
Source§type Error = TryIntoError<DblTheoryBox>
type Error = TryIntoError<DblTheoryBox>
The type returned in the event of a conversion error.
Source§fn try_from(value: DblTheoryBox) -> Result<Self, TryIntoError<DblTheoryBox>>
fn try_from(value: DblTheoryBox) -> Result<Self, TryIntoError<DblTheoryBox>>
Performs the conversion.
Source§impl TryFrom<DblTheoryBox> for Rc<DiscreteTabTheory>
impl TryFrom<DblTheoryBox> for Rc<DiscreteTabTheory>
Source§type Error = TryIntoError<DblTheoryBox>
type Error = TryIntoError<DblTheoryBox>
The type returned in the event of a conversion error.
Source§fn try_from(value: DblTheoryBox) -> Result<Self, TryIntoError<DblTheoryBox>>
fn try_from(value: DblTheoryBox) -> Result<Self, TryIntoError<DblTheoryBox>>
Performs the conversion.
Source§impl TryFrom<DblTheoryBox> for Rc<ModalDblTheory>
impl TryFrom<DblTheoryBox> for Rc<ModalDblTheory>
Source§type Error = TryIntoError<DblTheoryBox>
type Error = TryIntoError<DblTheoryBox>
The type returned in the event of a conversion error.
Source§fn try_from(value: DblTheoryBox) -> Result<Self, TryIntoError<DblTheoryBox>>
fn try_from(value: DblTheoryBox) -> Result<Self, TryIntoError<DblTheoryBox>>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DblTheoryBox
impl !RefUnwindSafe for DblTheoryBox
impl !Send for DblTheoryBox
impl !Sync for DblTheoryBox
impl Unpin for DblTheoryBox
impl !UnwindSafe for DblTheoryBox
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.