Struct snarkvm_console_types_field::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.
source§impl<E> Ternary for Boolean<E>where
E: Environment,
impl<E> Ternary for Boolean<E>where E: Environment,
source§impl<E> ToBits for Boolean<E>where
E: Environment,
impl<E> ToBits for Boolean<E>where E: Environment,
source§impl<E> ToBytes for Boolean<E>where
E: Environment,
impl<E> ToBytes for Boolean<E>where E: Environment,
source§impl<E> TypeName for Boolean<E>where
E: Environment,
impl<E> TypeName for Boolean<E>where E: Environment,
impl<E> BooleanTrait for Boolean<E>where E: Environment,
impl<E> Copy for Boolean<E>where E: Copy + Environment,
impl<E> Eq for Boolean<E>where E: Eq + Environment,
impl<E> StructuralEq for Boolean<E>where E: Environment,
impl<E> StructuralPartialEq for Boolean<E>where E: Environment,
Auto Trait Implementations§
impl<E> RefUnwindSafe for Boolean<E>where E: RefUnwindSafe,
impl<E> Send for Boolean<E>
impl<E> Sync for Boolean<E>
impl<E> Unpin for Boolean<E>where E: Unpin,
impl<E> UnwindSafe for Boolean<E>where E: 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
§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere T: DeserializeOwned,
fn take_from_value<D>( value: &mut Value, field: &str ) -> Result<T, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.