Trait IsSuperBorrowableTo

Source
pub trait IsSuperBorrowableTo<T>
where T: ?Sized,
{ // Required methods fn get_part(x: &T) -> &Self; fn get_part_mut(x: &mut T) -> &mut Self; }

Required Methods§

Source

fn get_part(x: &T) -> &Self

Source

fn get_part_mut(x: &mut T) -> &mut Self

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§

Source§

impl<T, X> IsSuperBorrowableTo<T> for X
where T: SuperBorrow<X>,