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