Trait pretty::StaticDoc

source ·
pub trait StaticDoc<'a, A>: DocPtr<'a, A>
where A: 'a,
{ type Allocator: DocAllocator<'a, A, Doc = Self> + 'static; const ALLOCATOR: &'static Self::Allocator; }

Required Associated Types§

source

type Allocator: DocAllocator<'a, A, Doc = Self> + 'static

Required Associated Constants§

source

const ALLOCATOR: &'static Self::Allocator

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, A> StaticDoc<'a, A> for BoxDoc<'a, A>

§

type Allocator = BoxAllocator

source§

const ALLOCATOR: &'static Self::Allocator = _

source§

impl<'a, A> StaticDoc<'a, A> for RcDoc<'a, A>

§

type Allocator = RcAllocator

source§

const ALLOCATOR: &'static Self::Allocator = _