Struct zerovec::ule::PairULE [−][src]
#[repr(packed)]pub struct PairULE<A, B>(pub A, pub B);
Expand description
We do not have guarantees for the layouts of tuples, so we must define a custom ULE type for pairs. This could potentially be generalized for larger tuples if necessary
Tuple Fields
0: A
1: B
Trait Implementations
type Error = PairULEError<A::Error, B::Error>
type Error = PairULEError<A::Error, B::Error>
The error that occurs if a byte array is not valid for this ULE.
Validates a byte slice, &[u8]
. Read more
Parses a byte slice, &[u8]
, and return it as &[Self]
with the same lifetime. Read more
Takes a byte slice, &[u8]
, and return it as &[Self]
with the same lifetime, assuming
that this byte slice has previously been run through Self::parse_byte_slice()
with
success. Read more
Auto Trait Implementations
impl<A, B> RefUnwindSafe for PairULE<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> UnwindSafe for PairULE<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more