pub trait FixedSizeFactory<'a, Ctx: Context<'a>>: InliningFactory<'a, Ctx> {
    // Required method
    fn size(&self) -> usize;
}
Expand description

This factory always reads the same amount of bytes or returns error.

Required Methods§

source

fn size(&self) -> usize

Implementations on Foreign Types§

source§

impl<'a, Ctx: Context<'a>, FA, FB> FixedSizeFactory<'a, Ctx> for (FA, FB)where FA: FixedSizeFactory<'a, Ctx>, FB: FixedSizeFactory<'a, Ctx> + FactoryModeParse<'a, Ctx>,

source§

fn size(&self) -> usize

Implementors§

source§

impl<'a, Ctx: Context<'a>, A: ConstSizeAtomic + AtomicModeParse> FixedSizeFactory<'a, Ctx> for AtomicFactory<A>

source§

impl<'a, Ctx: Context<'a>, F: Factory<'a, Ctx> + FixedSizeFactory<'a, Ctx>> FixedSizeFactory<'a, Ctx> for StackNodeFactory<Ctx, F>where F::Mtbl: MentionableTop<'a, Ctx>,

source§

impl<'a, Ctx: Context<'a>, F: AlwaysFixedSize + InliningFactory<'a, Ctx>> FixedSizeFactory<'a, Ctx> for F

source§

impl<'a, Ctx: Context<'a>, SP: StaticPair<'a>> FixedSizeFactory<'a, Ctx> for StaticPairFactory<'a, SP>where SP::FA: FixedSizeFactory<'a, Ctx>, SP::FB: FixedSizeFactory<'a, Ctx> + FactoryModeParse<'a, Ctx>,