Struct brainoxide::types::BfNum
source · #[repr(transparent)]pub struct BfNum(_);
Expand description
A BF number (u8 with wrapping semantics).
Trait Implementations§
source§impl AbstractTape<BfNum> for VecTape
impl AbstractTape<BfNum> for VecTape
source§impl AddAssign<BfNum> for BfNum
impl AddAssign<BfNum> for BfNum
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl MulAssign<BfNum> for BfNum
impl MulAssign<BfNum> for BfNum
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl Ord for BfNum
impl Ord for BfNum
source§impl PartialEq<BfNum> for BfNum
impl PartialEq<BfNum> for BfNum
source§impl PartialOrd<BfNum> for BfNum
impl PartialOrd<BfNum> for BfNum
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign<BfNum> for BfNum
impl SubAssign<BfNum> for BfNum
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for BfNum
impl Eq for BfNum
impl StructuralEq for BfNum
impl StructuralPartialEq for BfNum
Auto Trait Implementations§
impl RefUnwindSafe for BfNum
impl Send for BfNum
impl Sync for BfNum
impl Unpin for BfNum
impl UnwindSafe for BfNum
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<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.