pub struct NormalTermDefinition<T, B, C, M> {
    pub value: Option<Term<T, B>>,
    pub prefix: bool,
    pub protected: bool,
    pub reverse_property: bool,
    pub base_url: Option<T>,
    pub context: Option<Entry<C, M>>,
    pub container: Container,
    pub direction: Option<Nullable<Direction>>,
    pub index: Option<Entry<Index, M>>,
    pub language: Option<Nullable<LenientLanguageTagBuf>>,
    pub nest: Option<Entry<Nest, M>>,
    pub typ: Option<Type<T>>,
}

Fields§

§value: Option<Term<T, B>>§prefix: bool§protected: bool§reverse_property: bool§base_url: Option<T>§context: Option<Entry<C, M>>§container: Container§direction: Option<Nullable<Direction>>§index: Option<Entry<Index, M>>§language: Option<Nullable<LenientLanguageTagBuf>>§nest: Option<Entry<Nest, M>>§typ: Option<Type<T>>

Implementations§

source§

impl<T, B, C, M> NormalTermDefinition<T, B, C, M>

source

pub fn modulo_protected_field(&self) -> ModuloProtected<&Self>

source

pub fn base_url(&self) -> Option<&T>

source

pub fn into_syntax_definition( self, vocabulary: &impl Vocabulary<Iri = T, BlankId = B>, meta: M ) -> Meta<Nullable<TermDefinition<M>>, M>where C: IntoSyntax<T, B, M>, M: Clone,

Trait Implementations§

source§

impl<T: Clone, B: Clone, C: Clone, M: Clone> Clone for NormalTermDefinition<T, B, C, M>

source§

fn clone(&self) -> NormalTermDefinition<T, B, C, M>

Returns a copy 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<T, B, C, M> Default for NormalTermDefinition<T, B, C, M>

source§

fn default() -> NormalTermDefinition<T, B, C, M>

Returns the “default value” for a type. Read more
source§

impl<T: PartialEq, B: PartialEq, C: PartialEq, M: PartialEq> PartialEq<NormalTermDefinition<T, B, C, M>> for NormalTermDefinition<T, B, C, M>

source§

fn eq(&self, other: &NormalTermDefinition<T, B, C, M>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T: PartialEq<T>, B: PartialEq<B>, C: StrippedPartialEq<__C>, M: StrippedPartialEq<__M>, __C, __M> StrippedPartialEq<NormalTermDefinition<T, B, __C, __M>> for NormalTermDefinition<T, B, C, M>

source§

fn stripped_eq(&self, other: &NormalTermDefinition<T, B, __C, __M>) -> bool

source§

impl<T: Eq, B: Eq, C: Eq, M: Eq> Eq for NormalTermDefinition<T, B, C, M>

source§

impl<T: Eq, B: Eq, C: StrippedEq, M: StrippedEq> StrippedEq for NormalTermDefinition<T, B, C, M>

source§

impl<T, B, C, M> StructuralEq for NormalTermDefinition<T, B, C, M>

source§

impl<T, B, C, M> StructuralPartialEq for NormalTermDefinition<T, B, C, M>

Auto Trait Implementations§

§

impl<T, B, C, M> RefUnwindSafe for NormalTermDefinition<T, B, C, M>where B: RefUnwindSafe, C: RefUnwindSafe, M: RefUnwindSafe, T: RefUnwindSafe,

§

impl<T, B, C, M> Send for NormalTermDefinition<T, B, C, M>where B: Send, C: Send, M: Send, T: Send,

§

impl<T, B, C, M> Sync for NormalTermDefinition<T, B, C, M>where B: Sync, C: Sync, M: Sync, T: Sync,

§

impl<T, B, C, M> Unpin for NormalTermDefinition<T, B, C, M>where B: Unpin, C: Unpin, M: Unpin, T: Unpin,

§

impl<T, B, C, M> UnwindSafe for NormalTermDefinition<T, B, C, M>where B: UnwindSafe, C: UnwindSafe, M: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> At for T

source§

fn at<M>(self, metadata: M) -> Meta<T, M>

Wraps self inside a Meta<Self, M> using the given metadata. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> BorrowStripped for T

source§

fn stripped(&self) -> &Stripped<T>

source§

impl<T> BorrowUnordered for T

source§

fn unordered(&self) -> &Unordered<T>

source§

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

source§

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

source§

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

source§

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,

source§

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

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

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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> ToOwned for Twhere T: Clone,

§

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> ToOwned for T

§

type Owned = T

source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T> WithContext for Twhere T: ?Sized,

source§

fn with<C>(&self, context: C) -> Contextual<&T, C>

source§

fn into_with<C>(self, context: C) -> Contextual<T, C>