pub trait BakeSize: Sized + Bake {
// Required method
fn borrows_size(&self) -> usize;
}
Expand description
Allows returning the size of data borrowed by a baked struct.
Required Methods§
Sourcefn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
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.