#![allow(missing_docs)]
use uor_foundation_sdk::{partition_product, verb};
pub struct W8Byte;
impl uor_foundation::pipeline::ConstrainedTypeShape for W8Byte {
const IRI: &'static str = "https://uor.foundation/type/ConstrainedType";
const SITE_COUNT: usize = 1;
const CONSTRAINTS: &'static [uor_foundation::pipeline::ConstraintRef] = &[];
const CYCLE_SIZE: u64 = 256;
}
impl uor_foundation::pipeline::__sdk_seal::Sealed for W8Byte {}
impl uor_foundation::enforcement::GroundedShape for W8Byte {}
impl uor_foundation::pipeline::IntoBindingValue for W8Byte {
const MAX_BYTES: usize = 1;
fn into_binding_bytes(
&self,
_out: &mut [u8],
) -> Result<usize, uor_foundation::enforcement::ShapeViolation> {
Ok(0)
}
}
partition_product!(BytePair, W8Byte, W8Byte);
verb! {
pub fn add_bytes(input: BytePair) -> W8Byte {
add(input.0, input.1)
}
}
verb! {
pub fn concat_bytes(input: BytePair) -> W8Byte {
concat(input.0, input.1)
}
}
verb! {
pub fn saturating_xor_bytes(input: BytePair) -> W8Byte {
xor(input.0, input.1)
}
}