pub enum AtomLayout {
Bytes {
length: u32,
},
Field,
Compress,
}Expand description
Single FAB alignment atom in the flattened representation of a type.
Variants§
Bytes
Fixed-length byte atom (AlignmentAtom::Bytes { length }).
Field
Native BLS12-381 scalar field element (AlignmentAtom::Field).
Compress
Dynamically-sized opaque value compressed via transient_commit
(AlignmentAtom::Compress).
Implementations§
Source§impl AtomLayout
impl AtomLayout
Sourcepub const fn field_slots(self) -> usize
pub const fn field_slots(self) -> usize
Number of native field elements this atom occupies in ZKIR / FieldRepr.
Sourcepub const fn binary_len(self) -> usize
pub const fn binary_len(self) -> usize
Binary hash representation length in bytes (matches FAB AlignmentAtom::bin_len).
Sourcepub const fn is_multi_chunk_bytes(self) -> bool
pub const fn is_multi_chunk_bytes(self) -> bool
Returns true if this atom spans more than one field element and therefore
depends on ChunkOrder when converting between FAB and ZKIR v3.
Trait Implementations§
Source§impl Clone for AtomLayout
impl Clone for AtomLayout
impl Copy for AtomLayout
Source§impl Debug for AtomLayout
impl Debug for AtomLayout
impl Eq for AtomLayout
Source§impl Hash for AtomLayout
impl Hash for AtomLayout
Source§impl PartialEq for AtomLayout
impl PartialEq for AtomLayout
impl StructuralPartialEq for AtomLayout
Auto Trait Implementations§
impl Forget for AtomLayout
impl Freeze for AtomLayout
impl Move for AtomLayout
impl RefUnwindSafe for AtomLayout
impl Send for AtomLayout
impl Sync for AtomLayout
impl Unpin for AtomLayout
impl UnsafeUnpin for AtomLayout
impl UnwindSafe for AtomLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.