pub struct Octets<'a> { /* private fields */ }Expand description
Original fixed-width unsigned octets, without copying or normalization.
Padding and zero remain visible. This is not a validated group element or a scalar range check. As with ASN.1 raw views, callers fund their own byte iteration; constructing an iterator performs no scan or allocation.
Implementations§
Source§impl<'a> Octets<'a>
impl<'a> Octets<'a>
Sourcepub const fn byte_order(self) -> ByteOrder
pub const fn byte_order(self) -> ByteOrder
The original byte order, not a host-endian interpretation.
Sourcepub const fn offset(self) -> u64
pub const fn offset(self) -> u64
First original payload octet in the producing source coordinates.
Sourcepub fn big_endian(
self,
) -> impl ExactSizeIterator<Item = u8> + DoubleEndedIterator + 'a
pub fn big_endian( self, ) -> impl ExactSizeIterator<Item = u8> + DoubleEndedIterator + 'a
Unsigned magnitude, most significant octet first, retaining width.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Octets<'a>
impl<'a> RefUnwindSafe for Octets<'a>
impl<'a> Send for Octets<'a>
impl<'a> Sync for Octets<'a>
impl<'a> Unpin for Octets<'a>
impl<'a> UnsafeUnpin for Octets<'a>
impl<'a> UnwindSafe for Octets<'a>
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