pub enum BinaryAttr {
Show 19 variants
Reflexive,
Irreflexive,
Coreflexive,
Symmetric,
AntiSymmetric,
ASymmetric,
Transitive,
Total,
Connex,
Euclidean,
Serial,
Equivalence,
PartialOrder,
LeftTotal,
RightTotal,
LinearOrder,
WeakOrder,
PreOrder,
StrictPartialOrder,
}Variants§
Reflexive
Irreflexive
Coreflexive
Symmetric
AntiSymmetric
ASymmetric
Transitive
Total
Connex
Euclidean
Serial
Equivalence
PartialOrder
LeftTotal
RightTotal
LinearOrder
WeakOrder
PreOrder
StrictPartialOrder
Implementations§
Source§impl BinaryAttr
impl BinaryAttr
Sourcepub fn from_keyword(s: &str) -> Option<Self>
pub fn from_keyword(s: &str) -> Option<Self>
Parses the Essence keyword for a binary relation attribute (the inverse of Display).
Used both by native domain-attribute parsing (relation (reflexive, ...) of ...) and by
attribute-as-constraint lifting (reflexive(r)).
Trait Implementations§
Source§impl Clone for BinaryAttr
impl Clone for BinaryAttr
Source§fn clone(&self) -> BinaryAttr
fn clone(&self) -> BinaryAttr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryAttr
impl Debug for BinaryAttr
Source§impl<'de> Deserialize<'de> for BinaryAttr
impl<'de> Deserialize<'de> for BinaryAttr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Display for BinaryAttr
impl Display for BinaryAttr
impl Eq for BinaryAttr
Source§impl Hash for BinaryAttr
impl Hash for BinaryAttr
Source§impl PartialEq for BinaryAttr
impl PartialEq for BinaryAttr
Source§impl Quine for BinaryAttr
impl Quine for BinaryAttr
fn ctor_tokens(&self) -> TokenStream
Source§impl Serialize for BinaryAttr
impl Serialize for BinaryAttr
impl StructuralPartialEq for BinaryAttr
Auto Trait Implementations§
impl Freeze for BinaryAttr
impl RefUnwindSafe for BinaryAttr
impl Send for BinaryAttr
impl Sync for BinaryAttr
impl Unpin for BinaryAttr
impl UnsafeUnpin for BinaryAttr
impl UnwindSafe for BinaryAttr
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Reflexive: 0 bytesIrreflexive: 0 bytesCoreflexive: 0 bytesSymmetric: 0 bytesAntiSymmetric: 0 bytesASymmetric: 0 bytesTransitive: 0 bytesTotal: 0 bytesConnex: 0 bytesEuclidean: 0 bytesSerial: 0 bytesEquivalence: 0 bytesPartialOrder: 0 bytesLeftTotal: 0 bytesRightTotal: 0 bytesLinearOrder: 0 bytesWeakOrder: 0 bytesPreOrder: 0 bytesStrictPartialOrder: 0 bytes