Skip to main content

Fun2Builder

Trait Fun2Builder 

Source
pub trait Fun2Builder {
    type ARG1;
    type ARG2;

    // Required methods
    fn args1(data: &mut &str) -> WResult<Self::ARG1>;
    fn args2(data: &mut &str) -> WResult<Self::ARG2>;
    fn fun_name() -> &'static str;
    fn build(args: (Self::ARG1, Self::ARG2)) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn args1(data: &mut &str) -> WResult<Self::ARG1>

Source

fn args2(data: &mut &str) -> WResult<Self::ARG2>

Source

fn fun_name() -> &'static str

Source

fn build(args: (Self::ARG1, Self::ARG2)) -> Self

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.

Implementors§