pub trait ShapeDeclareExt<This>{
// Required methods
fn record<'a>(&'a self, words: Words<'a>) -> Record<'a, This>;
fn program<Program>(&self, program: Program) -> This::Ty
where Program: ShapeProgramAlg<This, Ty = This::Ty>;
}Expand description
The operations a declaration’s body states.
Required Methods§
Sourcefn record<'a>(&'a self, words: Words<'a>) -> Record<'a, This>
fn record<'a>(&'a self, words: Words<'a>) -> Record<'a, This>
Opens the product a declaration states, under the name the declaration carries.
Sourcefn program<Program>(&self, program: Program) -> This::Tywhere
Program: ShapeProgramAlg<This, Ty = This::Ty>,
fn program<Program>(&self, program: Program) -> This::Tywhere
Program: ShapeProgramAlg<This, Ty = This::Ty>,
The shape another declaration states, folded here.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<This> ShapeDeclareExt<This> for This
The operations a declaration’s body states.