Struct aligned_buffer_pool::ValidatorPool
source · pub struct ValidatorPool { /* private fields */ }Implementations§
source§impl ValidatorPool
impl ValidatorPool
pub fn new(capacity: usize) -> Self
pub fn validator(&self, bytes: &[u8]) -> PooledValidator
pub fn validator_with_max_depth( &self, bytes: &[u8], max_depth: Option<NonZeroUsize> ) -> PooledValidator
Trait Implementations§
source§impl Clone for ValidatorPool
impl Clone for ValidatorPool
source§fn clone(&self) -> ValidatorPool
fn clone(&self) -> ValidatorPool
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValidatorPool
impl RefUnwindSafe for ValidatorPool
impl Send for ValidatorPool
impl Sync for ValidatorPool
impl Unpin for ValidatorPool
impl UnwindSafe for ValidatorPool
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.