pub trait Wrap: AsRef<Self> + AsMut<Self> {
type RbRef: RbRef;
// Required methods
fn rb_ref(&self) -> &Self::RbRef;
fn into_rb_ref(self) -> Self::RbRef;
// Provided method
fn rb(&self) -> &<Self::RbRef as RbRef>::Rb { ... }
}
Expand description
Ring buffer wrapper that contains reference to the ring buffer inside.
Required Associated Types§
Required Methods§
Sourcefn into_rb_ref(self) -> Self::RbRef
fn into_rb_ref(self) -> Self::RbRef
Destructure into underlying ring buffer reference.
Provided Methods§
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.