pub struct KatVector {
pub input: &'static [u8],
pub expected: &'static [u8],
pub source: &'static str,
}Expand description
Known-answer test vector declared beside an operation in the frozen contract.
Example: a rotate-left primitive can publish input bytes, expected output bytes, and the source reference that established the vector.
Fields§
§input: &'static [u8]Test input bytes.
expected: &'static [u8]Expected output bytes.
source: &'static strSource used to establish the vector.
Trait Implementations§
impl Eq for KatVector
impl StructuralPartialEq for KatVector
Auto Trait Implementations§
impl Freeze for KatVector
impl RefUnwindSafe for KatVector
impl Send for KatVector
impl Sync for KatVector
impl Unpin for KatVector
impl UnsafeUnpin for KatVector
impl UnwindSafe for KatVector
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