pub trait ParsableRecursive<R> {
type Prefix: Parse;
type Base: Parse;
type Suffix: Parse;
type Infix: Parse;
// Required methods
fn join_prefix(prefix: Self::Prefix, root: R, parser: &mut Parser) -> Self;
fn from_base(base: Self::Base, parser: &mut Parser) -> Self;
fn join_suffix(root: R, suffix: Self::Suffix, parser: &mut Parser) -> Self;
fn join_infix(
lhs: R,
infix: Self::Infix,
rhs: R,
parser: &mut Parser,
) -> Self;
}Expand description
Recursive type
Required Associated Types§
Required Methods§
Sourcefn join_prefix(prefix: Self::Prefix, root: R, parser: &mut Parser) -> Self
fn join_prefix(prefix: Self::Prefix, root: R, parser: &mut Parser) -> Self
Creates this type from it’s parts
Sourcefn join_suffix(root: R, suffix: Self::Suffix, parser: &mut Parser) -> Self
fn join_suffix(root: R, suffix: Self::Suffix, parser: &mut Parser) -> Self
Creates this type from it’s parts
Sourcefn join_infix(lhs: R, infix: Self::Infix, rhs: R, parser: &mut Parser) -> Self
fn join_infix(lhs: R, infix: Self::Infix, rhs: R, parser: &mut Parser) -> Self
Creates this type from it’s parts
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.