Struct json_ld::context::TypeTermDefinition
source · pub struct TypeTermDefinition {
pub container: TypeContainer,
pub protected: bool,
}Expand description
@type term definition.
Such definition compared to a NormalTermDefinition can only contain
a @container and @protected value.
Fields§
§container: TypeContainerType container.
protected: boolProtection flag.
Implementations§
source§impl TypeTermDefinition
impl TypeTermDefinition
pub fn modulo_protected_field(&self) -> ModuloProtected<&TypeTermDefinition>
pub fn into_syntax_definition<M>(&self, meta: M) -> Meta<Type<M>, M>where M: Clone,
Trait Implementations§
source§impl Clone for TypeTermDefinition
impl Clone for TypeTermDefinition
source§fn clone(&self) -> TypeTermDefinition
fn clone(&self) -> TypeTermDefinition
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 Default for TypeTermDefinition
impl Default for TypeTermDefinition
source§fn default() -> TypeTermDefinition
fn default() -> TypeTermDefinition
Returns the “default value” for a type. Read more
source§impl PartialEq<TypeTermDefinition> for TypeTermDefinition
impl PartialEq<TypeTermDefinition> for TypeTermDefinition
source§fn eq(&self, other: &TypeTermDefinition) -> bool
fn eq(&self, other: &TypeTermDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl StrippedPartialEq<TypeTermDefinition> for TypeTermDefinition
impl StrippedPartialEq<TypeTermDefinition> for TypeTermDefinition
fn stripped_eq(&self, other: &TypeTermDefinition) -> bool
impl Eq for TypeTermDefinition
impl StrippedEq for TypeTermDefinition
impl StructuralEq for TypeTermDefinition
impl StructuralPartialEq for TypeTermDefinition
Auto Trait Implementations§
impl RefUnwindSafe for TypeTermDefinition
impl Send for TypeTermDefinition
impl Sync for TypeTermDefinition
impl Unpin for TypeTermDefinition
impl UnwindSafe for TypeTermDefinition
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<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
§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
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
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.