Trait ScriptBitXor

Source
pub trait ScriptBitXor {
    type RHS: ?Sized;
    type Result: ?Sized;

    // Required method
    fn script_bit_xor(origin: Origin, lhs: Arg, rhs: Arg) -> RuntimeResult<Cell>;
}
Expand description

A script bitwise exclusive disjunction operator: lhs ^ rhs.

Implementing this trait enables the Object::bit_xor operation.

The trait must be implemented for the registered type, and the implementation must be exported using the export macro. For more details, see the module documentation.

Required Associated Types§

Source

type RHS: ?Sized

A rough estimation of the type of the right-hand side of the operation.

This type must implement ScriptType.

Source

type Result: ?Sized

A rough estimation of the result type of this operation.

This type must implement ScriptType.

Required Methods§

Source

fn script_bit_xor(origin: Origin, lhs: Arg, rhs: Arg) -> RuntimeResult<Cell>

Operation implementation.

The parameters and return type of this function correspond to those of the Object::bit_xor function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ScriptBitXor for i8

Source§

impl ScriptBitXor for i16

Source§

impl ScriptBitXor for i32

Source§

impl ScriptBitXor for i64

Source§

impl ScriptBitXor for i128

Source§

impl ScriptBitXor for isize

Source§

impl ScriptBitXor for u8

Source§

impl ScriptBitXor for u16

Source§

impl ScriptBitXor for u32

Source§

impl ScriptBitXor for u64

Source§

impl ScriptBitXor for u128

Source§

impl ScriptBitXor for usize

Implementors§