pub struct BehaviorWrite {
pub offset: u32,
pub size: u32,
}Expand description
A field-relative byte range a behavior writes during update/exit.
Offsets are relative to the attached account’s data start (the same
absolute-offset convention the segment primitives use once the macro
knows the account); the macro resolves the account index and folds
the range into the context’s write-policy WritePolicy as
WriteRange::new(index, offset, size).
Fields§
§offset: u32Byte offset within the attached account’s data.
size: u32Byte size of the written range.
Implementations§
Trait Implementations§
Source§impl Clone for BehaviorWrite
impl Clone for BehaviorWrite
impl Copy for BehaviorWrite
Source§impl Debug for BehaviorWrite
impl Debug for BehaviorWrite
impl Eq for BehaviorWrite
Source§impl PartialEq for BehaviorWrite
impl PartialEq for BehaviorWrite
impl StructuralPartialEq for BehaviorWrite
Auto Trait Implementations§
impl Freeze for BehaviorWrite
impl RefUnwindSafe for BehaviorWrite
impl Send for BehaviorWrite
impl Sync for BehaviorWrite
impl Unpin for BehaviorWrite
impl UnsafeUnpin for BehaviorWrite
impl UnwindSafe for BehaviorWrite
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