pub struct RetainAllRetentionPolicy;Expand description
A policy that retains all buffers.
Trait Implementations§
source§impl BufferRetentionPolicy for RetainAllRetentionPolicy
impl BufferRetentionPolicy for RetainAllRetentionPolicy
fn should_retain(&self, _: usize) -> bool
source§impl Clone for RetainAllRetentionPolicy
impl Clone for RetainAllRetentionPolicy
source§fn clone(&self) -> RetainAllRetentionPolicy
fn clone(&self) -> RetainAllRetentionPolicy
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 moresource§impl Default for RetainAllRetentionPolicy
impl Default for RetainAllRetentionPolicy
source§fn default() -> RetainAllRetentionPolicy
fn default() -> RetainAllRetentionPolicy
Returns the “default value” for a type. Read more
impl Copy for RetainAllRetentionPolicy
Auto Trait Implementations§
impl Freeze for RetainAllRetentionPolicy
impl RefUnwindSafe for RetainAllRetentionPolicy
impl Send for RetainAllRetentionPolicy
impl Sync for RetainAllRetentionPolicy
impl Unpin for RetainAllRetentionPolicy
impl UnwindSafe for RetainAllRetentionPolicy
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.