pub struct Options {
pub processing_mode: ProcessingMode,
pub override_protected: bool,
pub propagate: bool,
pub vocab: Action,
}
Expand description
Options of the Context Processing Algorithm.
Fields§
§processing_mode: ProcessingMode
The processing mode
override_protected: bool
Override protected definitions.
propagate: bool
Propagate the processed context.
vocab: Action
Forbid the use of @vocab
to expand terms.
Implementations§
Source§impl Options
impl Options
Sourcepub fn with_override(&self) -> Options
pub fn with_override(&self) -> Options
Return the same set of options, but with override_protected
set to true
.
Sourcepub fn with_no_override(&self) -> Options
pub fn with_no_override(&self) -> Options
Return the same set of options, but with override_protected
set to false
.
Sourcepub fn without_propagation(&self) -> Options
pub fn without_propagation(&self) -> Options
Return the same set of options, but with propagate
set to false
.
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.