pub struct RecordSchema {
pub name: &'static str,
pub length: u16,
pub fields: &'static [RecordField],
}Expand description
A fixed-length record that travels inside a property’s blob.
Codegen writes the Renderer’s decoder from this, so the two sides read the same bytes at the same offsets and nobody keeps a second copy of the layout by hand.
Fields§
§name: &'static strThe Kotlin class the decoder produces.
length: u16§fields: &'static [RecordField]Trait Implementations§
Source§impl Clone for RecordSchema
impl Clone for RecordSchema
impl Copy for RecordSchema
Source§impl Debug for RecordSchema
impl Debug for RecordSchema
impl Eq for RecordSchema
Source§impl PartialEq for RecordSchema
impl PartialEq for RecordSchema
impl StructuralPartialEq for RecordSchema
Auto Trait Implementations§
impl Freeze for RecordSchema
impl RefUnwindSafe for RecordSchema
impl Send for RecordSchema
impl Sync for RecordSchema
impl Unpin for RecordSchema
impl UnsafeUnpin for RecordSchema
impl UnwindSafe for RecordSchema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more