pub struct Contradiction { /* private fields */ }Expand description
Contradiction between two distinct statements.
Implementations§
Source§impl Contradiction
impl Contradiction
Sourcepub fn new(
statement_id: StatementId,
disputed_id: StatementId,
contradicts_id: StatementId,
) -> Result<Self, ValidationError>
pub fn new( statement_id: StatementId, disputed_id: StatementId, contradicts_id: StatementId, ) -> Result<Self, ValidationError>
Creates a contradiction body from required fields.
Sourcepub const fn kind(&self) -> StatementKind
pub const fn kind(&self) -> StatementKind
Returns this body kind.
Sourcepub const fn statement_id(&self) -> &StatementId
pub const fn statement_id(&self) -> &StatementId
Returns the contradiction statement identifier.
Sourcepub const fn disputed_id(&self) -> &StatementId
pub const fn disputed_id(&self) -> &StatementId
Returns the disputed statement identifier.
Sourcepub const fn contradicts_id(&self) -> &StatementId
pub const fn contradicts_id(&self) -> &StatementId
Returns the contradicting statement identifier.
Trait Implementations§
Source§impl Debug for Contradiction
impl Debug for Contradiction
impl Eq for Contradiction
Source§impl PartialEq for Contradiction
impl PartialEq for Contradiction
Source§fn eq(&self, other: &Contradiction) -> bool
fn eq(&self, other: &Contradiction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Contradiction
Auto Trait Implementations§
impl Freeze for Contradiction
impl RefUnwindSafe for Contradiction
impl Send for Contradiction
impl Sync for Contradiction
impl Unpin for Contradiction
impl UnsafeUnpin for Contradiction
impl UnwindSafe for Contradiction
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