pub struct HexByte {
pub value: u8,
pub mask: u8,
/* private fields */
}
Expand description
A single byte in a hex pattern (a.k.a. hex string).
The byte’s value is accompanied by a mask that indicates which bits in the value are taken into account during matching, and which are ignored. A bit set to 1 in the mask indicates that the corresponding bit in the value is taken into account, while a bit set to 0 indicates that the corresponding bit in the value is ignored. Ignored bits are always set to 0 in the value.
For example, for pattern A?
the value is A0
and the mask is F0
, and
for pattern ?1
the value is 01
and the mask is 0F
.
Fields§
§value: u8
§mask: u8
Trait Implementations§
impl Eq for HexByte
impl StructuralPartialEq for HexByte
Auto Trait Implementations§
impl Freeze for HexByte
impl RefUnwindSafe for HexByte
impl Send for HexByte
impl Sync for HexByte
impl Unpin for HexByte
impl UnwindSafe for HexByte
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<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§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