pub trait FrameSize:
Clone
+ Copy
+ PartialEq
+ Eq
+ PartialOrd
+ Ord
+ Debug {
const SIZE: Bytes;
// Provided method
fn frames_needed(bytes: Bytes) -> Bytes { ... }
}
Expand description
This trait is implemented by a number of marker types, one for each size of frame and page. Different size types are defined depending on the target architecture.
Required Associated Constants§
Provided Methods§
fn frames_needed(bytes: Bytes) -> Bytes
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.