pub struct BoolFailure {
pub op: BoolOp,
pub reason: BoolFailureReason,
pub product_id: Option<u32>,
}Expand description
Single boolean / CSG failure record.
product_id is optional because the CSG kernel itself doesn’t know which
IFC product it’s operating on — the router fills that in when it drains
failures after processing an element.
Fields§
§op: BoolOp§reason: BoolFailureReason§product_id: Option<u32>Implementations§
Source§impl BoolFailure
impl BoolFailure
pub fn new(op: BoolOp, reason: BoolFailureReason) -> Self
Sourcepub fn with_product_id(self, product_id: u32) -> Self
pub fn with_product_id(self, product_id: u32) -> Self
Attach an IFC product express ID. Used by the router after the CSG kernel returns, since the kernel itself is product-agnostic.
Trait Implementations§
Source§impl Clone for BoolFailure
impl Clone for BoolFailure
Source§fn clone(&self) -> BoolFailure
fn clone(&self) -> BoolFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BoolFailure
impl Debug for BoolFailure
Source§impl Display for BoolFailure
impl Display for BoolFailure
impl Eq for BoolFailure
Source§impl PartialEq for BoolFailure
impl PartialEq for BoolFailure
Source§fn eq(&self, other: &BoolFailure) -> bool
fn eq(&self, other: &BoolFailure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoolFailure
Auto Trait Implementations§
impl Freeze for BoolFailure
impl RefUnwindSafe for BoolFailure
impl Send for BoolFailure
impl Sync for BoolFailure
impl Unpin for BoolFailure
impl UnsafeUnpin for BoolFailure
impl UnwindSafe for BoolFailure
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.