Trait ark_serialize::Valid

source ·
pub trait Valid: Sized + Sync {
    // Required method
    fn check(&self) -> Result<(), SerializationError>;

    // Provided method
    fn batch_check<'a>(
        batch: impl Iterator<Item = &'a Self> + Send
    ) -> Result<(), SerializationError>
       where Self: 'a { ... }
}

Required Methods§

Provided Methods§

source

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>
where Self: 'a,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Valid for bool

source§

impl Valid for u8

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self> ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl Valid for u16

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self> ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl Valid for u32

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self> ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl Valid for u64

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self> ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl Valid for ()

source§

impl Valid for usize

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self> ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl Valid for String

source§

impl Valid for BigUint

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( _batch: impl Iterator<Item = &'a Self> ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl<'b, T> Valid for Cow<'b, T>

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl<A> Valid for (A,)
where A: Valid,

source§

impl<A, B> Valid for (A, B)
where A: Valid, B: Valid,

source§

impl<A, B, C> Valid for (A, B, C)
where A: Valid, B: Valid, C: Valid,

source§

impl<A, B, C, D> Valid for (A, B, C, D)
where A: Valid, B: Valid, C: Valid, D: Valid,

source§

impl<K: Valid, V: Valid> Valid for BTreeMap<K, V>

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl<T: Sync> Valid for PhantomData<T>

source§

impl<T: CanonicalDeserialize, const N: usize> Valid for [T; N]

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl<T: Valid + Sync + Send> Valid for Arc<T>

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl<T: Valid> Valid for Option<T>

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl<T: Valid> Valid for Vec<T>

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>
where Self: 'a,

source§

impl<V: Valid> Valid for BTreeSet<V>

source§

fn check(&self) -> Result<(), SerializationError>

source§

fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>
where Self: 'a,

Implementors§