Skip to main content

ParametricWriteRange

Struct ParametricWriteRange 

Source
pub struct ParametricWriteRange {
    pub account_index: u8,
    pub base_offset: u32,
    pub stride: u32,
    pub cell_size: u32,
    pub count: u32,
    pub argument_index: u8,
    pub argument_name: &'static str,
    pub segment_name: &'static str,
}
Expand description

A runtime-selected fixed-size cell inside a statically declared column.

The static WriteRange remains the conservative envelope used by tooling. This descriptor narrows that envelope for one invocation to base_offset + args[argument_index] * stride .. + cell_size.

Fields§

§account_index: u8

Instruction account-list index this column belongs to.

§base_offset: u32

Absolute offset of element zero.

§stride: u32

Byte distance between consecutive elements.

§cell_size: u32

Writable bytes in the selected element.

§count: u32

Number of cells in the column.

§argument_index: u8

Index into the invocation’s bound u32 policy arguments.

§argument_name: &'static str

Stable instruction-argument name for manifests and diagnostics.

§segment_name: &'static str

Stable state segment/field name for manifests and diagnostics.

Implementations§

Source§

impl ParametricWriteRange

Source

pub const fn new( account_index: u8, base_offset: u32, stride: u32, cell_size: u32, count: u32, argument_index: u8, argument_name: &'static str, segment_name: &'static str, ) -> Self

Build one parametric column rule.

Trait Implementations§

Source§

impl Clone for ParametricWriteRange

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ParametricWriteRange

Source§

impl Debug for ParametricWriteRange

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ParametricWriteRange

Source§

impl PartialEq for ParametricWriteRange

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ParametricWriteRange

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.