pub struct BooleanWeight { /* private fields */ }Expand description
Boolean semiring: (&, |, false, true).
Trait Implementations§
Source§impl Clone for BooleanWeight
impl Clone for BooleanWeight
Source§fn clone(&self) -> BooleanWeight
fn clone(&self) -> BooleanWeight
Returns a duplicate of the value. Read more
1.0.0 · 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 BooleanWeight
impl Debug for BooleanWeight
Source§impl Default for BooleanWeight
impl Default for BooleanWeight
Source§fn default() -> BooleanWeight
fn default() -> BooleanWeight
Returns the “default value” for a type. Read more
Source§impl Display for BooleanWeight
impl Display for BooleanWeight
Source§impl From<bool> for BooleanWeight
impl From<bool> for BooleanWeight
Source§impl Hash for BooleanWeight
impl Hash for BooleanWeight
Source§impl PartialEq for BooleanWeight
impl PartialEq for BooleanWeight
Source§impl PartialOrd for BooleanWeight
impl PartialOrd for BooleanWeight
Source§impl ReverseBack<BooleanWeight> for BooleanWeight
impl ReverseBack<BooleanWeight> for BooleanWeight
fn reverse_back(&self) -> Result<BooleanWeight>
Source§impl Semiring for BooleanWeight
impl Semiring for BooleanWeight
type Type = bool
type ReverseWeight = BooleanWeight
fn zero() -> Self
fn one() -> Self
fn new(value: <Self as Semiring>::Type) -> Self
fn plus_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
fn times_assign<P: Borrow<Self>>(&mut self, rhs: P) -> Result<()>
fn approx_equal<P: Borrow<Self>>(&self, rhs: P, _delta: f32) -> bool
Source§fn take_value(self) -> Self::Type
fn take_value(self) -> Self::Type
Move underneath value.
fn set_value(&mut self, value: <Self as Semiring>::Type)
fn reverse(&self) -> Result<Self::ReverseWeight>
fn properties() -> SemiringProperties
fn plus<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
fn times<P: Borrow<Self>>(&self, rhs: P) -> Result<Self>
fn is_one(&self) -> bool
fn is_zero(&self) -> bool
Source§impl StarSemiring for BooleanWeight
impl StarSemiring for BooleanWeight
Source§impl WeaklyDivisibleSemiring for BooleanWeight
impl WeaklyDivisibleSemiring for BooleanWeight
fn divide_assign(&mut self, rhs: &Self, _divide_type: DivideType) -> Result<()>
fn divide(&self, rhs: &Self, divide_type: DivideType) -> Result<Self>
impl CompleteSemiring for BooleanWeight
impl Copy for BooleanWeight
impl Eq for BooleanWeight
impl StructuralPartialEq for BooleanWeight
Auto Trait Implementations§
impl Freeze for BooleanWeight
impl RefUnwindSafe for BooleanWeight
impl Send for BooleanWeight
impl Sync for BooleanWeight
impl Unpin for BooleanWeight
impl UnsafeUnpin for BooleanWeight
impl UnwindSafe for BooleanWeight
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 more