pub enum TermDefinition<M, C = Value<M>> {
Simple(Simple),
Expanded(Box<Expanded<M, C>>),
}
Expand description
Term definition.
Variants§
Trait Implementations§
source§impl<M: Clone, C: Clone> Clone for TermDefinition<M, C>
impl<M: Clone, C: Clone> Clone for TermDefinition<M, C>
source§fn clone(&self) -> TermDefinition<M, C>
fn clone(&self) -> TermDefinition<M, C>
Returns a copy 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<'a, M: Clone, C> From<&'a TermDefinition<M, C>> for TermDefinitionRef<'a, M, C>
impl<'a, M: Clone, C> From<&'a TermDefinition<M, C>> for TermDefinitionRef<'a, M, C>
source§fn from(d: &'a TermDefinition<M, C>) -> Self
fn from(d: &'a TermDefinition<M, C>) -> Self
Converts to this type from the input type.
source§impl<M> IntoJsonMeta<M> for TermDefinition<M>
impl<M> IntoJsonMeta<M> for TermDefinition<M>
fn into_json_meta(self, meta: M) -> Meta<Value<M>, M>
source§impl<M: PartialEq, C: PartialEq> PartialEq<TermDefinition<M, C>> for TermDefinition<M, C>
impl<M: PartialEq, C: PartialEq> PartialEq<TermDefinition<M, C>> for TermDefinition<M, C>
source§fn eq(&self, other: &TermDefinition<M, C>) -> bool
fn eq(&self, other: &TermDefinition<M, C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, C: StrippedPartialEq<__C>, __M, __C> StrippedPartialEq<TermDefinition<__M, __C>> for TermDefinition<M, C>
impl<M, C: StrippedPartialEq<__C>, __M, __C> StrippedPartialEq<TermDefinition<__M, __C>> for TermDefinition<M, C>
fn stripped_eq(&self, other: &TermDefinition<__M, __C>) -> bool
source§impl<M: Clone> TryFromJson<M> for TermDefinition<M>
impl<M: Clone> TryFromJson<M> for TermDefinition<M>
type Error = InvalidContext
fn try_from_json( Meta: Meta<Value<M>, M> ) -> Result<Meta<Self, M>, Meta<InvalidContext, M>>
impl<M: Eq, C: Eq> Eq for TermDefinition<M, C>
impl<M, C> StructuralEq for TermDefinition<M, C>
impl<M, C> StructuralPartialEq for TermDefinition<M, C>
Auto Trait Implementations§
impl<M, C> RefUnwindSafe for TermDefinition<M, C>where C: RefUnwindSafe, M: RefUnwindSafe,
impl<M, C> Send for TermDefinition<M, C>where C: Send, M: Send,
impl<M, C> Sync for TermDefinition<M, C>where C: Sync, M: Sync,
impl<M, C> Unpin for TermDefinition<M, C>
impl<M, C> UnwindSafe for TermDefinition<M, C>where C: UnwindSafe, M: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.