pub struct Boolean<E: Environment> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<E: Environment> BitAnd for Boolean<E>
impl<E: Environment> BitAnd for Boolean<E>
Source§impl<E: Environment> BitAndAssign for Boolean<E>
impl<E: Environment> BitAndAssign for Boolean<E>
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Sets self
as the bitwise AND
of self
and other
.
Source§impl<E: Environment> BitOr for Boolean<E>
impl<E: Environment> BitOr for Boolean<E>
Source§impl<E: Environment> BitOrAssign for Boolean<E>
impl<E: Environment> BitOrAssign for Boolean<E>
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Sets self
as the bitwise OR
of self
and other
.
Source§impl<E: Environment> BitXor for Boolean<E>
impl<E: Environment> BitXor for Boolean<E>
Source§impl<E: Environment> BitXorAssign for Boolean<E>
impl<E: Environment> BitXorAssign for Boolean<E>
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Sets self
as the bitwise XOR
of self
and other
.
Source§impl<E: Environment> Debug for Boolean<E>
impl<E: Environment> Debug for Boolean<E>
Source§impl<E: Environment> Deref for Boolean<E>
impl<E: Environment> Deref for Boolean<E>
Source§impl<'de, E: Environment> Deserialize<'de> for Boolean<E>
impl<'de, E: Environment> Deserialize<'de> for Boolean<E>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the boolean from a string or bytes.
Source§impl<E: Environment> Display for Boolean<E>
impl<E: Environment> Display for Boolean<E>
Source§impl<E: Environment> Distribution<Boolean<E>> for Standard
impl<E: Environment> Distribution<Boolean<E>> for Standard
Source§impl<E: Environment> Equal for Boolean<E>
impl<E: Environment> Equal for Boolean<E>
Source§impl<E: Environment> FromBits for Boolean<E>
impl<E: Environment> FromBits for Boolean<E>
Source§fn from_bits_le(bits_le: &[bool]) -> Result<Self>
fn from_bits_le(bits_le: &[bool]) -> Result<Self>
Initializes a new boolean by extracting the first bit from a list of length 1.
Source§fn from_bits_be(bits_be: &[bool]) -> Result<Self>
fn from_bits_be(bits_be: &[bool]) -> Result<Self>
Initializes a new boolean by extracting the first bit from a list of length 1.
Source§impl<E: Environment> FromBytes for Boolean<E>
impl<E: Environment> FromBytes for Boolean<E>
Source§impl<E: Environment> FromStr for Boolean<E>
impl<E: Environment> FromStr for Boolean<E>
Source§impl<E: Environment> Nand for Boolean<E>
impl<E: Environment> Nand for Boolean<E>
Source§impl<E: Environment> Nor for Boolean<E>
impl<E: Environment> Nor for Boolean<E>
Source§impl<E: Environment> Not for Boolean<E>
impl<E: Environment> Not for Boolean<E>
Source§impl<E: Environment> Parser for Boolean<E>
impl<E: Environment> Parser for Boolean<E>
Source§fn parse(string: &str) -> ParserResult<'_, Self>
fn parse(string: &str) -> ParserResult<'_, Self>
Parses a string into a boolean.
Source§impl<E: Environment> Serialize for Boolean<E>
impl<E: Environment> Serialize for Boolean<E>
Source§impl<E: Environment> SizeInBits for Boolean<E>
impl<E: Environment> SizeInBits for Boolean<E>
Source§fn size_in_bits() -> usize
fn size_in_bits() -> usize
Returns the field size in bits.
Source§impl<E: Environment> SizeInBytes for Boolean<E>
impl<E: Environment> SizeInBytes for Boolean<E>
Source§fn size_in_bytes() -> usize
fn size_in_bytes() -> usize
Returns the boolean size in bytes.
Source§impl<E: Environment> SizeInDataBits for Boolean<E>
impl<E: Environment> SizeInDataBits for Boolean<E>
Source§fn size_in_data_bits() -> usize
fn size_in_data_bits() -> usize
Returns the field capacity for data bits.
Source§impl<E: Environment> Ternary for Boolean<E>
impl<E: Environment> Ternary for Boolean<E>
Source§impl<E: Environment> ToBits for Boolean<E>
impl<E: Environment> ToBits for Boolean<E>
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs self
in a vector.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs self
in a vector.
Source§fn to_bits_le(&self) -> Vec<bool>
fn to_bits_le(&self) -> Vec<bool>
Returns
self
as a boolean array in little-endian order.Source§fn to_bits_be(&self) -> Vec<bool>
fn to_bits_be(&self) -> Vec<bool>
Returns
self
as a boolean array in big-endian order.Source§impl<E: Environment> ToBytes for Boolean<E>
impl<E: Environment> ToBytes for Boolean<E>
Source§impl<E: Environment> TypeName for Boolean<E>
impl<E: Environment> TypeName for Boolean<E>
impl<E: Environment> BooleanTrait for Boolean<E>
impl<E: Copy + Environment> Copy for Boolean<E>
impl<E: Eq + Environment> Eq for Boolean<E>
impl<E: Environment> StructuralPartialEq for Boolean<E>
Auto Trait Implementations§
impl<E> Freeze for Boolean<E>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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