pub trait HasRType: Record + RecordMut {
// Required method
fn has_rtype(rtype: u8) -> bool;
}Expand description
An extension of the Record trait for types with a static RType. Used for
determining if a rtype matches a type.
Because of the static function requirement, this trait is implemented by all concrete record
types like MboMsg, but not by RecordRef, which can reference a record of
dynamic type.
While not dyn compatible, RecordRef acts like a &dyn HasRType.
Required 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.