#[non_exhaustive]pub struct Stated {
pub unit: StatedUnit,
pub pos: u64,
}Expand description
An #[at] position, checked against the position computed from field widths.
Counted from the start of the LayoutDef or
MessageDef body. It catches a mistyped field width.
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.unit: StatedUnitThe unit of pos.
pos: u64The position.
Implementations§
Trait Implementations§
impl Copy for Stated
impl Eq for Stated
impl StructuralPartialEq for Stated
Auto Trait Implementations§
impl Freeze for Stated
impl RefUnwindSafe for Stated
impl Send for Stated
impl Sync for Stated
impl Unpin for Stated
impl UnsafeUnpin for Stated
impl UnwindSafe for Stated
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