pub struct ShapeWitness {
pub label: String,
pub accepted_left: bool,
pub accepted_right: bool,
pub note: String,
}Expand description
Result of checking one probe against both compared shapes.
Fields§
§label: StringStable label supplied by the caller.
accepted_left: boolWhether the left shape accepted the probe.
accepted_right: boolWhether the right shape accepted the probe.
note: StringShort explanation such as accepted by both.
Trait Implementations§
Source§impl Clone for ShapeWitness
impl Clone for ShapeWitness
Source§fn clone(&self) -> ShapeWitness
fn clone(&self) -> ShapeWitness
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 ShapeWitness
impl Debug for ShapeWitness
impl Eq for ShapeWitness
Source§impl PartialEq for ShapeWitness
impl PartialEq for ShapeWitness
Source§fn eq(&self, other: &ShapeWitness) -> bool
fn eq(&self, other: &ShapeWitness) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShapeWitness
Auto Trait Implementations§
impl Freeze for ShapeWitness
impl RefUnwindSafe for ShapeWitness
impl Send for ShapeWitness
impl Sync for ShapeWitness
impl Unpin for ShapeWitness
impl UnsafeUnpin for ShapeWitness
impl UnwindSafe for ShapeWitness
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