pub struct Boolean<E> where
    E: Environment
{ /* private fields */ }

Implementations

Initializes a new boolean.

👎Deprecated since 0.1.0:

This is used for testing purposes

Initializes a false boolean.

Trait Implementations

Returns the bitwise AND of self and other.

The resulting type after applying the & operator.

Returns the bitwise AND`` of selfandother`.

The resulting type after applying the & operator.

Sets self as the bitwise AND of self and other.

Returns the bitwise OR of self and other.

The resulting type after applying the | operator.

Returns the bitwise OR of self and other.

The resulting type after applying the | operator.

Sets self as the bitwise OR of self and other.

Returns the bitwise XOR of self and other.

The resulting type after applying the ^ operator.

Returns the bitwise XOR of self and other.

The resulting type after applying the ^ operator.

Sets self as the bitwise XOR of self and other.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Deserializes the boolean from a string or bytes.

Formats the value using the given formatter. Read more

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

Returns true if self and other are equal.

Returns true if self and other are not equal.

Initializes a new boolean by extracting the first bit from a list of length 1.

Initializes a new boolean by extracting the first bit from a list of length 1.

Reads the boolean from a buffer.

Returns Self from a byte array in little-endian order.

Parses a string into a boolean.

The associated error which can be returned from parsing.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Returns the bitwise NAND of self and other.

Returns the bitwise NOR of self and other.

Returns the negation of self.

The resulting type after applying the ! operator.

Parses a string into a boolean.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serializes the boolean into a string or as bytes.

Returns the field size in bits.

Returns the boolean size in bytes.

Returns the field capacity for data bits.

Returns first if condition is true, otherwise returns second.

Outputs self in a vector.

Outputs self in a vector.

Writes the boolean to a buffer.

Returns self as a byte array in little-endian order.

Returns the type name as a string.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Samples a random value from a uniform distribution.