pub struct AbsentTarget<'a, E: ConditionEvaluator + ?Sized>(pub &'a E);Expand description
Evaluates conditions for an element or group that is known to be absent.
Identical to the wrapped evaluator except that the message type’s
presence_condition is False: whatever the condition annotates is not
there. Use it wherever a status is evaluated to decide whether something
missing is required.
Tuple Fields§
§0: &'a ETrait Implementations§
Source§impl<E: ConditionEvaluator + ?Sized> ConditionEvaluator for AbsentTarget<'_, E>
impl<E: ConditionEvaluator + ?Sized> ConditionEvaluator for AbsentTarget<'_, E>
Source§fn evaluate(
&self,
condition: u32,
ctx: &EvaluationContext<'_>,
) -> ConditionResult
fn evaluate( &self, condition: u32, ctx: &EvaluationContext<'_>, ) -> ConditionResult
Evaluate a single condition by number. Read more
Source§fn is_external(&self, condition: u32) -> bool
fn is_external(&self, condition: u32) -> bool
Returns
true if the given condition requires external context
(i.e., cannot be determined from the EDIFACT message alone).Source§fn is_known(&self, condition: u32) -> bool
fn is_known(&self, condition: u32) -> bool
Returns
true if this evaluator has an implementation for the given
condition number (whether internal or external). Conditions that fall
through to the _ => Unknown wildcard return false. Read moreSource§fn message_type(&self) -> &str
fn message_type(&self) -> &str
Returns the message type this evaluator handles (e.g., “UTILMD”).
Source§fn format_version(&self) -> &str
fn format_version(&self) -> &str
Returns the format version this evaluator handles (e.g., “FV2510”).
Auto Trait Implementations§
impl<'a, E> Freeze for AbsentTarget<'a, E>
impl<'a, E> RefUnwindSafe for AbsentTarget<'a, E>
impl<'a, E> Send for AbsentTarget<'a, E>
impl<'a, E> Sync for AbsentTarget<'a, E>
impl<'a, E> Unpin for AbsentTarget<'a, E>
impl<'a, E> UnsafeUnpin for AbsentTarget<'a, E>
impl<'a, E> UnwindSafe for AbsentTarget<'a, E>
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