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§

Implementors§

source§

impl BufferResizeGuard for PyByteArray

§

type Resizable<'a> = RwLockWriteGuard<'a, RawCellRwLock, PyBytesInner>