Registry

Struct Registry 

Source
pub struct Registry { /* private fields */ }
Expand description

The test vector registry

Implementations§

Source§

impl Registry

Source

pub fn new(root: impl Into<PathBuf>) -> Self

Create a new registry from the given jam-test-vectors directory

Source

pub fn entry(&self, section: &str) -> Result<Entry>

Get an entry from the registry

Source

pub fn accumulate(&self, scale: Scale) -> Result<Entry>

Get the accumulate test vectors

Source

pub fn assurances(&self, scale: Scale) -> Result<Entry>

Get the assurances test vectors

Source

pub fn authorizations(&self, scale: Scale) -> Result<Entry>

Get the authorizations test vectors

Source

pub fn codec(&self) -> Result<Entry>

Get the codec test vectors

Source

pub fn disputes(&self, scale: Scale) -> Result<Entry>

Get the disputes test vectors

Source

pub fn history(&self) -> Result<Entry>

Get the history test vectors

Source

pub fn preimages(&self) -> Result<Entry>

Get the preimages test vectors

Source

pub fn pvm(&self) -> Result<Entry>

Get the pvm test vectors

Source

pub fn reports(&self, scale: Scale) -> Result<Entry>

Get the reports test vectors

Source

pub fn safrole(&self, scale: Scale) -> Result<Entry>

Get the safrole test vectors

Source

pub fn statistics(&self, scale: Scale) -> Result<Entry>

Get the statistics test vectors

Source

pub fn shuffle(&self) -> Result<Entry>

Get the shuffle test vectors

Source

pub fn trace(&self, trace: Trace) -> Result<Entry>

Get the trace test vectors

Source

pub fn trie(&self) -> Result<Entry>

Get the trie test vectors

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.