referrerpolicy=no-referrer-when-downgrade
staging_xcm_builder

Trait CreateMatcher

Source
pub trait CreateMatcher {
    type Matcher;

    // Required method
    fn matcher(self) -> Self::Matcher;
}
Expand description

Creates an instruction matcher from an XCM. Since XCM versions differ, we need to make a trait here to unify the interfaces among them.

Required Associated Types§

Source

type Matcher

The concrete matcher type.

Required Methods§

Source

fn matcher(self) -> Self::Matcher

Method that creates and returns the matcher type from Self.

Implementations on Foreign Types§

Source§

impl<'a, Call> CreateMatcher for &'a mut [Instruction<Call>]

Source§

type Matcher = Matcher<'a, Call>

Source§

fn matcher(self) -> Self::Matcher

Implementors§