Trait vm_value::Logical

source ·
pub trait Logical: Clone + Sized {
    // Required methods
    fn bool_and(&self, b: &Self) -> bool;
    fn bool_or(&self, b: &Self) -> bool;
    fn bool_xor(&self, b: &Self) -> bool;
    fn bool_not(&self) -> bool;
    fn bitwise_reverse(&self) -> Self;

    // Provided methods
    fn logical_and(&self, b: &Self) -> Self { ... }
    fn logical_or(&self, b: &Self) -> Self { ... }
    fn logical_xor(&self, b: &Self) -> Self { ... }
}

Required Methods§

source

fn bool_and(&self, b: &Self) -> bool

source

fn bool_or(&self, b: &Self) -> bool

source

fn bool_xor(&self, b: &Self) -> bool

source

fn bool_not(&self) -> bool

source

fn bitwise_reverse(&self) -> Self

Provided Methods§

source

fn logical_and(&self, b: &Self) -> Self

source

fn logical_or(&self, b: &Self) -> Self

source

fn logical_xor(&self, b: &Self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Logical for VarInt

source§

fn bool_and(&self, b: &Self) -> bool

source§

fn bool_or(&self, b: &Self) -> bool

source§

fn bool_xor(&self, b: &Self) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> Self

source§

impl Logical for VarUInt

source§

fn bool_and(&self, b: &Self) -> bool

source§

fn bool_or(&self, b: &Self) -> bool

source§

fn bool_xor(&self, b: &Self) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> Self

source§

impl Logical for VarFloat

source§

fn bool_and(&self, b: &Self) -> bool

source§

fn bool_or(&self, b: &Self) -> bool

source§

fn bool_xor(&self, b: &Self) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> Self

source§

impl Logical for VarNum

source§

fn bool_and(&self, b: &Self) -> bool

source§

fn bool_or(&self, b: &Self) -> bool

source§

fn bool_xor(&self, b: &Self) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> Self

source§

impl Logical for i8

source§

fn bool_and(&self, b: &i8) -> bool

source§

fn bool_or(&self, b: &i8) -> bool

source§

fn bool_xor(&self, b: &i8) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> i8

source§

impl Logical for i16

source§

fn bool_and(&self, b: &i16) -> bool

source§

fn bool_or(&self, b: &i16) -> bool

source§

fn bool_xor(&self, b: &i16) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> i16

source§

impl Logical for i32

source§

fn bool_and(&self, b: &i32) -> bool

source§

fn bool_or(&self, b: &i32) -> bool

source§

fn bool_xor(&self, b: &i32) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> i32

source§

impl Logical for i64

source§

fn bool_and(&self, b: &i64) -> bool

source§

fn bool_or(&self, b: &i64) -> bool

source§

fn bool_xor(&self, b: &i64) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> i64

source§

impl Logical for i128

source§

fn bool_and(&self, b: &i128) -> bool

source§

fn bool_or(&self, b: &i128) -> bool

source§

fn bool_xor(&self, b: &i128) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> i128

source§

impl Logical for isize

source§

fn bool_and(&self, b: &isize) -> bool

source§

fn bool_or(&self, b: &isize) -> bool

source§

fn bool_xor(&self, b: &isize) -> bool

source§

fn bool_not(&self) -> bool

source§

fn bitwise_reverse(&self) -> isize

Implementors§