Trait BufferResizeGuard

Source
pub trait BufferResizeGuard {
    type Resizable<'a>: 'a
       where Self: 'a;

    // Required method
    fn try_resizable_opt(&self) -> Option<Self::Resizable<'_>>;

    // Provided method
    fn try_resizable(
        &self,
        vm: &VirtualMachine,
    ) -> PyResult<Self::Resizable<'_>> { ... }
}

Required Associated Types§

Source

type Resizable<'a>: 'a where Self: 'a

Required Methods§

Source

fn try_resizable_opt(&self) -> Option<Self::Resizable<'_>>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§