ff-uint 0.2.4

Library for building and interfacing with fixed-sized integers and finite fields
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(not(feature = "borsh_support"))]
pub trait Borsh {}

#[cfg(feature = "borsh_support")]
pub trait Borsh: borsh::BorshSerialize + borsh::BorshDeserialize {}

#[cfg(not(feature = "borsh_support"))]
impl<T> Borsh for T {}

#[cfg(feature = "borsh_support")]
impl<T> Borsh for T where T: borsh::BorshSerialize + borsh::BorshDeserialize {}