Struct snarkvm_console_types_string::Boolean
source · pub struct Boolean<E>where
E: Environment,{ /* private fields */ }
Implementations§
Trait Implementations§
source§impl<E> BitAndAssign<Boolean<E>> for Boolean<E>where
E: Environment,
impl<E> BitAndAssign<Boolean<E>> for Boolean<E>where E: Environment,
source§fn bitand_assign(&mut self, other: Boolean<E>)
fn bitand_assign(&mut self, other: Boolean<E>)
Sets self
as the bitwise AND
of self
and other
.
source§impl<E> BitOrAssign<Boolean<E>> for Boolean<E>where
E: Environment,
impl<E> BitOrAssign<Boolean<E>> for Boolean<E>where E: Environment,
source§fn bitor_assign(&mut self, other: Boolean<E>)
fn bitor_assign(&mut self, other: Boolean<E>)
Sets self
as the bitwise OR
of self
and other
.
source§impl<E> BitXorAssign<Boolean<E>> for Boolean<E>where
E: Environment,
impl<E> BitXorAssign<Boolean<E>> for Boolean<E>where E: Environment,
source§fn bitxor_assign(&mut self, other: Boolean<E>)
fn bitxor_assign(&mut self, other: Boolean<E>)
Sets self
as the bitwise XOR
of self
and other
.
source§impl<E> Debug for Boolean<E>where
E: Environment,
impl<E> Debug for Boolean<E>where E: Environment,
source§impl<E> Deref for Boolean<E>where
E: Environment,
impl<E> Deref for Boolean<E>where E: Environment,
source§impl<'de, E> Deserialize<'de> for Boolean<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for Boolean<E>where E: Environment,
source§fn deserialize<D>(
deserializer: D
) -> Result<Boolean<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Boolean<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the boolean from a string or bytes.
source§impl<E> Display for Boolean<E>where
E: Environment,
impl<E> Display for Boolean<E>where E: Environment,
source§impl<E> Distribution<Boolean<E>> for Standardwhere
E: Environment,
impl<E> Distribution<Boolean<E>> for Standardwhere E: Environment,
source§fn sample<R>(&self, rng: &mut R) -> Boolean<E>where
R: Rng + ?Sized,
fn sample<R>(&self, rng: &mut R) -> Boolean<E>where R: Rng + ?Sized,
Generate a random value of
T
, using rng
as the source of randomness.source§impl<E> Equal<Boolean<E>> for Boolean<E>where
E: Environment,
impl<E> Equal<Boolean<E>> for Boolean<E>where E: Environment,
source§fn is_equal(
&self,
other: &Boolean<E>
) -> <Boolean<E> as Equal<Boolean<E>>>::Output
fn is_equal( &self, other: &Boolean<E> ) -> <Boolean<E> as Equal<Boolean<E>>>::Output
Returns true
if self
and other
are equal.
source§fn is_not_equal(
&self,
other: &Boolean<E>
) -> <Boolean<E> as Equal<Boolean<E>>>::Output
fn is_not_equal( &self, other: &Boolean<E> ) -> <Boolean<E> as Equal<Boolean<E>>>::Output
Returns true
if self
and other
are not equal.
type Output = Boolean<E>
source§impl<E> FromBits for Boolean<E>where
E: Environment,
impl<E> FromBits for Boolean<E>where E: Environment,
source§impl<E> FromBytes for Boolean<E>where
E: Environment,
impl<E> FromBytes for Boolean<E>where E: Environment,
source§impl<E> FromStr for Boolean<E>where
E: Environment,
impl<E> FromStr for Boolean<E>where E: Environment,
source§impl<E> Not for Boolean<E>where
E: Environment,
impl<E> Not for Boolean<E>where E: Environment,
source§impl<E> Parser for Boolean<E>where
E: Environment,
impl<E> Parser for Boolean<E>where E: Environment,
source§impl<E> PartialEq<Boolean<E>> for Boolean<E>where
E: PartialEq<E> + Environment,
impl<E> PartialEq<Boolean<E>> for Boolean<E>where E: PartialEq<E> + Environment,
source§impl<E> Serialize for Boolean<E>where
E: Environment,
impl<E> Serialize for Boolean<E>where E: Environment,
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serializes the boolean into a string or as bytes.
source§impl<E> SizeInBits for Boolean<E>where
E: Environment,
impl<E> SizeInBits for Boolean<E>where E: Environment,
source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the field size in bits.
source§impl<E> SizeInBytes for Boolean<E>where
E: Environment,
impl<E> SizeInBytes for Boolean<E>where E: Environment,
source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the boolean size in bytes.
source§impl<E> SizeInDataBits for Boolean<E>where
E: Environment,
impl<E> SizeInDataBits for Boolean<E>where E: Environment,
source§fn size_in_data_bits() -> usize
fn size_in_data_bits() -> usize
Returns the field capacity for data bits.