pub struct HtmlAllocatorPool { /* private fields */ }Implementations§
Source§impl HtmlAllocatorPool
impl HtmlAllocatorPool
Sourcepub fn new_with_metadb(
allocator_max_use_count: u16,
max_allocations: u32,
metadb: Option<&'static MetaDb>,
context: Context,
) -> Self
pub fn new_with_metadb( allocator_max_use_count: u16, max_allocations: u32, metadb: Option<&'static MetaDb>, context: Context, ) -> Self
allocator_max_use_count is the number of times an
HtmlAllocator should be re-used. For the other arguments, see
HtmlAllocator::new_with_metadb.
pub fn get<'p>(&'p self) -> HtmlAllocatorGuard<'p>
Source§impl HtmlAllocatorPool
impl HtmlAllocatorPool
Sourcepub fn new(max_allocations: u32, verify: bool, context: Context) -> Self
pub fn new(max_allocations: u32, verify: bool, context: Context) -> Self
Make a new allocator pool, if verify is true, for
HtmlAllocators with the default HTML5 structure
checking. Uses a high re-use count; for custom
allocator_max_use_count values, use
HtmlAllocatorPool::new_with_metadb instead.
Auto Trait Implementations§
impl !Freeze for HtmlAllocatorPool
impl RefUnwindSafe for HtmlAllocatorPool
impl Send for HtmlAllocatorPool
impl Sync for HtmlAllocatorPool
impl Unpin for HtmlAllocatorPool
impl UnwindSafe for HtmlAllocatorPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more