pub trait AsBaseRefExt<T>: AsBaseRef<T> { // Provided method fn as_base(&self) -> &T { ... } }
Extension method for AsBaseRef .