pub struct FunArray<const N: u64, T>(/* private fields */);
Expand description
A fixed-size array wrapper with functional semantics and F* integration.
FunArray<N, T>
represents an array of T
values of length N
, where N
is a compile-time constant.
Internally, it uses a fixed-length array of Option<T>
with a maximum capacity of 512 elements.
Unused elements beyond N
are filled with None
.
This type is integrated with F* through various #[hax_lib::fstar::replace]
attributes to support
formal verification workflows.
Implementations§
Trait Implementations§
impl<const N: u64, T: Copy> Copy for FunArray<N, T>
impl<const N: u64, T: Eq> Eq for FunArray<N, T>
impl<const N: u64, T> StructuralPartialEq for FunArray<N, T>
Auto Trait Implementations§
impl<const N: u64, T> Freeze for FunArray<N, T>where
T: Freeze,
impl<const N: u64, T> RefUnwindSafe for FunArray<N, T>where
T: RefUnwindSafe,
impl<const N: u64, T> Send for FunArray<N, T>where
T: Send,
impl<const N: u64, T> Sync for FunArray<N, T>where
T: Sync,
impl<const N: u64, T> Unpin for FunArray<N, T>where
T: Unpin,
impl<const N: u64, T> UnwindSafe for FunArray<N, T>where
T: UnwindSafe,
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