#[non_exhaustive]pub struct By {
pub field: String,
pub scale: u32,
pub offset: i32,
}Expand description
A number taken from an earlier field: field * scale + offset.
The runtime equivalent is layline_core::table::By.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.field: StringThe field to read. It must come before the field that uses it.
scale: u32The multiplier.
offset: i32The value added after scaling.
Implementations§
Trait Implementations§
impl Eq for By
impl StructuralPartialEq for By
Auto Trait Implementations§
impl Freeze for By
impl RefUnwindSafe for By
impl Send for By
impl Sync for By
impl Unpin for By
impl UnsafeUnpin for By
impl UnwindSafe for By
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