Trait CompactBorrowMut

Source
pub trait CompactBorrowMut: Compactable {
    type Target<'a>
       where Self: 'a;

    // Required method
    fn borrow_mut(compact: &mut Compact<Self>) -> Self::Target<'_>;
}
Expand description

Types that can be mutably borrowed from Compact. Typically derived from EnumPtr.

Required Associated Types§

Source

type Target<'a> where Self: 'a

Required Methods§

Source

fn borrow_mut(compact: &mut Compact<Self>) -> Self::Target<'_>

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§