Skip to main content

NormalTermDefinition

Struct NormalTermDefinition 

Source
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<&NormalTermDefinition<T, B, C, M>>

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, B, C, M> Clone for NormalTermDefinition<T, B, C, M>
where T: Clone, B: Clone, C: Clone, M: Clone,

Source§

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

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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, B, C, M> PartialEq for NormalTermDefinition<T, B, C, M>
where T: PartialEq, B: PartialEq, C: PartialEq, M: PartialEq,

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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<T, B, C, M, __C, __M> StrippedPartialEq<NormalTermDefinition<T, B, __C, __M>> for NormalTermDefinition<T, B, C, M>
where T: PartialEq, B: PartialEq, C: StrippedPartialEq<__C>, M: StrippedPartialEq<__M>,

Source§

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

Source§

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

Source§

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

Source§

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

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

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

§

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

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

Source§

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

Source§

impl<T> BorrowUnordered for T

Source§

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

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

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

Source§

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

Source§

impl<Q, K> Equivalent<K> for Q
where 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 Q
where 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<Q, K> Equivalent<K> for Q
where 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 Q
where 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

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, C> FromWithContext<T, C> for T

Source§

fn from_with(value: T, _context: &C) -> T

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, U, C> IntoWithContext<U, C> for T
where U: FromWithContext<T, C>,

Source§

fn into_with(self, context: &C) -> U

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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> ToOwned for T

Source§

type Owned = T

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, C> TryFromWithContext<U, C> for T
where U: IntoWithContext<T, C>,

Source§

type Error = Infallible

Source§

fn try_from_with( value: U, context: &C, ) -> Result<T, <T as TryFromWithContext<U, C>>::Error>

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, U, C> TryIntoWithContext<U, C> for T
where U: TryFromWithContext<T, C>,

Source§

type Error = <U as TryFromWithContext<T, C>>::Error

Source§

fn try_into_with( self, context: &C, ) -> Result<U, <T as TryIntoWithContext<U, C>>::Error>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

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

Source§

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

Source§

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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more