pub struct Gf2NumericAxisN<const BYTES: usize>;Expand description
GF(2) arithmetic over N-byte operands — bitwise XOR / AND.
Each byte position is independently a GF(2)-element under bitwise XOR (addition) and AND (multiplication). Per-byte distributivity / commutativity / GF(2) field properties hold.
Trait Implementations§
Source§impl<const BYTES: usize> AxisExtension for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> AxisExtension for Gf2NumericAxisN<BYTES>
Source§const AXIS_ADDRESS: &'static str = <Gf2NumericAxisN<BYTES> as RingAxis>::AXIS_ADDRESS
const AXIS_ADDRESS: &'static str = <Gf2NumericAxisN<BYTES> as RingAxis>::AXIS_ADDRESS
ADR-017 content address of this axis trait. The SDK macro
derives this from the trait name and method signatures.
Source§const MAX_OUTPUT_BYTES: usize = <Gf2NumericAxisN<BYTES> as RingAxis>::MAX_OUTPUT_BYTES
const MAX_OUTPUT_BYTES: usize = <Gf2NumericAxisN<BYTES> as RingAxis>::MAX_OUTPUT_BYTES
Maximum bytes any kernel of this axis returns.
Source§fn dispatch_kernel(
kernel_id: u32,
input: &[u8],
out: &mut [u8],
) -> Result<usize, ShapeViolation>
fn dispatch_kernel( kernel_id: u32, input: &[u8], out: &mut [u8], ) -> Result<usize, ShapeViolation>
Dispatch the kernel identified by
kernel_id against the
evaluated input bytes. The implementation copies the kernel’s
output into out and returns the written length. Read moreSource§impl<const BYTES: usize> Clone for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> Clone for Gf2NumericAxisN<BYTES>
Source§fn clone(&self) -> Gf2NumericAxisN<BYTES>
fn clone(&self) -> Gf2NumericAxisN<BYTES>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const BYTES: usize> Debug for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> Debug for Gf2NumericAxisN<BYTES>
Source§impl<const BYTES: usize> Default for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> Default for Gf2NumericAxisN<BYTES>
Source§fn default() -> Gf2NumericAxisN<BYTES>
fn default() -> Gf2NumericAxisN<BYTES>
Returns the “default value” for a type. Read more
Source§impl<const BYTES: usize> RingAxis for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> RingAxis for Gf2NumericAxisN<BYTES>
Source§impl<const BYTES: usize> SubstrateTermBody for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> SubstrateTermBody for Gf2NumericAxisN<BYTES>
Source§fn body_arena() -> &'static [Term]
fn body_arena() -> &'static [Term]
The Term arena the kernel decomposes to. Empty slice signals a
primitive-fast-path axis whose body the implementation may evaluate
through
dispatch_kernel directly per ADR-055’s optional fast-path.impl<const BYTES: usize> Copy for Gf2NumericAxisN<BYTES>
Auto Trait Implementations§
impl<const BYTES: usize> Freeze for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> RefUnwindSafe for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> Send for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> Sync for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> Unpin for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> UnsafeUnpin for Gf2NumericAxisN<BYTES>
impl<const BYTES: usize> UnwindSafe for Gf2NumericAxisN<BYTES>
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