pub unsafe trait RbRef: Clone + AsRef<Self::Rb> {
type Rb: RingBuffer + ?Sized;
// Provided method
fn rb(&self) -> &Self::Rb { ... }
}Expand description
Abstract pointer to the owning ring buffer.
§Safety
Implementation must be fair (e.g. not replacing pointers between calls and so on).
Required Associated Types§
Sourcetype Rb: RingBuffer + ?Sized
type Rb: RingBuffer + ?Sized
Underlying ring buffer.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".