pub struct DblModel(pub DblModelBox);
Expand description
Wasm bindings for a model of a double theory.
Tuple Fields§
§0: DblModelBox
Implementations§
Source§impl DblModel
impl DblModel
Sourcepub fn has_mor(&self, mor: Mor) -> Result<bool, String>
pub fn has_mor(&self, mor: Mor) -> Result<bool, String>
Is the morphism contained in the model?
Sourcepub fn objects_with_type(&self, ob_type: ObType) -> Result<Vec<Ob>, String>
pub fn objects_with_type(&self, ob_type: ObType) -> Result<Vec<Ob>, String>
Returns array of basic objects with the given type.
Sourcepub fn morphisms_with_type(&self, mor_type: MorType) -> Result<Vec<Mor>, String>
pub fn morphisms_with_type(&self, mor_type: MorType) -> Result<Vec<Mor>, String>
Returns array of basic morphisms with the given type.
Sourcepub fn validate(&self) -> ModelValidationResult
pub fn validate(&self) -> ModelValidationResult
Validates that the model is well defined.
Trait Implementations§
Source§impl FromWasmAbi for DblModel
impl FromWasmAbi for DblModel
Source§impl IntoWasmAbi for DblModel
impl IntoWasmAbi for DblModel
Source§impl LongRefFromWasmAbi for DblModel
impl LongRefFromWasmAbi for DblModel
Source§impl OptionFromWasmAbi for DblModel
impl OptionFromWasmAbi for DblModel
Source§impl OptionIntoWasmAbi for DblModel
impl OptionIntoWasmAbi for DblModel
Source§impl RefFromWasmAbi for DblModel
impl RefFromWasmAbi for DblModel
Source§impl RefMutFromWasmAbi for DblModel
impl RefMutFromWasmAbi for DblModel
Source§impl TryFromJsValue for DblModel
impl TryFromJsValue for DblModel
Source§impl VectorFromWasmAbi for DblModel
impl VectorFromWasmAbi for DblModel
Source§impl VectorIntoWasmAbi for DblModel
impl VectorIntoWasmAbi for DblModel
impl SupportsConstructor for DblModel
impl SupportsInstanceProperty for DblModel
impl SupportsStaticProperty for DblModel
Auto Trait Implementations§
impl Freeze for DblModel
impl RefUnwindSafe for DblModel
impl Send for DblModel
impl Sync for DblModel
impl Unpin for DblModel
impl UnwindSafe for DblModel
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 moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.§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.