Trait ScriptConcat

Source
pub trait ScriptConcat {
    type Result: ?Sized;

    // Required method
    fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>;
}
Expand description

A script concatenation operator: [a, b, c].

Implementing this trait enables the TypeMeta::concat 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 Result: ?Sized

A rough estimation of the result type of this operation.

This type must implement ScriptType.

Required Methods§

Source

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Operation implementation.

The parameters and return type of this function correspond to those of the TypeMeta::concat 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 ScriptConcat for bool

Source§

impl ScriptConcat for f32

Source§

type Result = f32

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for f64

Source§

type Result = f64

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for i8

Source§

type Result = i8

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for i16

Source§

type Result = i16

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for i32

Source§

type Result = i32

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for i64

Source§

type Result = i64

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for i128

Source§

impl ScriptConcat for isize

Source§

impl ScriptConcat for str

Source§

type Result = str

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for u8

Source§

type Result = u8

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for u16

Source§

type Result = u16

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for u32

Source§

type Result = u32

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for u64

Source§

type Result = u64

Source§

fn script_concat(origin: Origin, items: &mut [Arg]) -> RuntimeResult<Cell>

Source§

impl ScriptConcat for u128

Source§

impl ScriptConcat for usize

Implementors§