Enum InvalidDblModelMorphism

Source
pub enum InvalidDblModelMorphism<ObGen, MorGen> {
    Ob(ObGen),
    Mor(MorGen),
    Dom(MorGen),
    Cod(MorGen),
    ObType(ObGen),
    MorType(MorGen),
    Eq(usize),
}
Expand description

An invalid assignment in a morphism between models of a double theory.

Variants§

§

Ob(ObGen)

An object generator not mapped to an object in the codomain model.

§

Mor(MorGen)

A morphism generator not mapped to a morphism in the codomain model.

§

Dom(MorGen)

A morphism generator whose domain is not preserved.

§

Cod(MorGen)

A morphism generator whose codomain is not preserved.

§

ObType(ObGen)

An object generator whose type is not preserved.

§

MorType(MorGen)

A morphism generator whose type is not preserved.

§

Eq(usize)

A path equation in domain presentation that is not respected.

Trait Implementations§

Source§

impl<ObGen: Clone, MorGen: Clone> Clone for InvalidDblModelMorphism<ObGen, MorGen>

Source§

fn clone(&self) -> InvalidDblModelMorphism<ObGen, MorGen>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<ObGen: Debug, MorGen: Debug> Debug for InvalidDblModelMorphism<ObGen, MorGen>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, ObGen, MorGen> Deserialize<'de> for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: Deserialize<'de>, MorGen: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<ObGen, MorGen> Display for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: Display, MorGen: Display,

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<ObGen, MorGen> Error for InvalidDblModelMorphism<ObGen, MorGen>
where Self: Debug + Display,

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl<ObGen, MorGen> From<InvalidDblModelMorphism<ObGen, MorGen>> for JsValue
where InvalidDblModelMorphism<ObGen, MorGen>: Serialize,

Source§

fn from(value: InvalidDblModelMorphism<ObGen, MorGen>) -> Self

Converts to this type from the input type.
Source§

impl<ObGen, MorGen> FromWasmAbi for InvalidDblModelMorphism<ObGen, MorGen>
where Self: DeserializeOwned,

Source§

type Abi = <JsType as FromWasmAbi>::Abi

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Source§

unsafe fn from_abi(js: Self::Abi) -> Self

Recover a Self from Self::Abi. Read more
Source§

impl<ObGen, MorGen> IntoWasmAbi for InvalidDblModelMorphism<ObGen, MorGen>
where InvalidDblModelMorphism<ObGen, MorGen>: Serialize,

Source§

type Abi = <JsType as IntoWasmAbi>::Abi

The Wasm ABI type that this converts into when crossing the ABI boundary.
Source§

fn into_abi(self) -> Self::Abi

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Source§

impl<ObGen, MorGen> OptionFromWasmAbi for InvalidDblModelMorphism<ObGen, MorGen>
where Self: DeserializeOwned,

Source§

fn is_none(js: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl<ObGen, MorGen> OptionIntoWasmAbi for InvalidDblModelMorphism<ObGen, MorGen>
where InvalidDblModelMorphism<ObGen, MorGen>: Serialize,

Source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl<ObGen: PartialEq, MorGen: PartialEq> PartialEq for InvalidDblModelMorphism<ObGen, MorGen>

Source§

fn eq(&self, other: &InvalidDblModelMorphism<ObGen, MorGen>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<ObGen, MorGen> RefFromWasmAbi for InvalidDblModelMorphism<ObGen, MorGen>
where Self: DeserializeOwned,

Source§

type Abi = <JsType as RefFromWasmAbi>::Abi

The Wasm ABI type references to Self are recovered from.
Source§

type Anchor = SelfOwner<InvalidDblModelMorphism<ObGen, MorGen>>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous.
Source§

unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor

Recover a Self::Anchor from Self::Abi. Read more
Source§

impl<ObGen, MorGen> Serialize for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: Serialize, MorGen: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<ObGen, MorGen> Tsify for InvalidDblModelMorphism<ObGen, MorGen>

Source§

const DECL: &'static str = "/**\n * An invalid assignment in a morphism between models of a double theory.\n */\nexport type InvalidDblModelMorphism<ObGen, MorGen> = { tag: \"Ob\"; content: ObGen } | { tag: \"Mor\"; content: MorGen } | { tag: \"Dom\"; content: MorGen } | { tag: \"Cod\"; content: MorGen } | { tag: \"ObType\"; content: ObGen } | { tag: \"MorType\"; content: MorGen } | { tag: \"Eq\"; content: number };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

§

fn into_js(&self) -> Result<Self::JsType, Error>
where Self: Serialize,

§

fn from_js<T>(js: T) -> Result<Self, Error>
where T: Into<JsValue>, Self: DeserializeOwned,

Source§

impl<ObGen, MorGen> VectorFromWasmAbi for InvalidDblModelMorphism<ObGen, MorGen>
where Self: DeserializeOwned,

Source§

type Abi = <JsType as VectorFromWasmAbi>::Abi

Source§

unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>

Source§

impl<ObGen, MorGen> VectorIntoWasmAbi for InvalidDblModelMorphism<ObGen, MorGen>
where InvalidDblModelMorphism<ObGen, MorGen>: Serialize,

Source§

type Abi = <JsType as VectorIntoWasmAbi>::Abi

Source§

fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi

Source§

impl<ObGen, MorGen> WasmDescribe for InvalidDblModelMorphism<ObGen, MorGen>

Source§

impl<ObGen, MorGen> WasmDescribeVector for InvalidDblModelMorphism<ObGen, MorGen>

Source§

impl<ObGen: Eq, MorGen: Eq> Eq for InvalidDblModelMorphism<ObGen, MorGen>

Source§

impl<ObGen, MorGen> StructuralPartialEq for InvalidDblModelMorphism<ObGen, MorGen>

Auto Trait Implementations§

§

impl<ObGen, MorGen> Freeze for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: Freeze, MorGen: Freeze,

§

impl<ObGen, MorGen> RefUnwindSafe for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: RefUnwindSafe, MorGen: RefUnwindSafe,

§

impl<ObGen, MorGen> Send for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: Send, MorGen: Send,

§

impl<ObGen, MorGen> Sync for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: Sync, MorGen: Sync,

§

impl<ObGen, MorGen> Unpin for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: Unpin, MorGen: Unpin,

§

impl<ObGen, MorGen> UnwindSafe for InvalidDblModelMorphism<ObGen, MorGen>
where ObGen: UnwindSafe, MorGen: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ReturnWasmAbi for T
where T: IntoWasmAbi,

Source§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Source§

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.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

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

Checks if self is actually part of its subset T (and can be converted to it).
§

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

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,