pub struct NegativeWeight<W> {
pub weight: W,
}Expand description
Indicates that an attempt to tabulate a value with negative weight has been made.
Fields§
§weight: WThe associated (negative) weight for the tabulated value.
Trait Implementations§
Source§impl<W: Debug> Debug for NegativeWeight<W>
impl<W: Debug> Debug for NegativeWeight<W>
Source§impl<W> Display for NegativeWeight<W>where
W: Debug,
impl<W> Display for NegativeWeight<W>where
W: Debug,
impl<W: Eq> Eq for NegativeWeight<W>
Source§impl<W> Error for NegativeWeight<W>
impl<W> Error for NegativeWeight<W>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<W> From<NegativeWeight<W>> for Error
impl<W> From<NegativeWeight<W>> for Error
Source§fn from(_: NegativeWeight<W>) -> Self
fn from(_: NegativeWeight<W>) -> Self
Converts to this type from the input type.
Source§impl<W: PartialEq> PartialEq for NegativeWeight<W>
impl<W: PartialEq> PartialEq for NegativeWeight<W>
Source§fn eq(&self, other: &NegativeWeight<W>) -> bool
fn eq(&self, other: &NegativeWeight<W>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<W: PartialEq> StructuralPartialEq for NegativeWeight<W>
Auto Trait Implementations§
impl<W> Freeze for NegativeWeight<W>where
W: Freeze,
impl<W> RefUnwindSafe for NegativeWeight<W>where
W: RefUnwindSafe,
impl<W> Send for NegativeWeight<W>where
W: Send,
impl<W> Sync for NegativeWeight<W>where
W: Sync,
impl<W> Unpin for NegativeWeight<W>where
W: Unpin,
impl<W> UnsafeUnpin for NegativeWeight<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for NegativeWeight<W>where
W: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more