pub struct ByteReader<'r>(/* private fields */);
Implementations§
Source§impl<'r> ByteReader<'r>
impl<'r> ByteReader<'r>
pub const NAME: &'r str = "ByteReader"
pub fn to_entity(self) -> Byte
pub fn new_unchecked(slice: &'r [u8]) -> ByteReader<'r>
pub fn as_slice(&self) -> &'r [u8] ⓘ
pub fn verify(slice: &[u8], _compatible: bool) -> Result<(), VerificationError>
pub fn from_slice(slice: &'r [u8]) -> Result<ByteReader<'r>, VerificationError>
pub fn from_compatible_slice( slice: &'r [u8], ) -> Result<ByteReader<'r>, VerificationError>
Trait Implementations§
Source§impl<'r> Clone for ByteReader<'r>
impl<'r> Clone for ByteReader<'r>
Source§fn clone(&self) -> ByteReader<'r>
fn clone(&self) -> ByteReader<'r>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'r> Debug for ByteReader<'r>
impl<'r> Debug for ByteReader<'r>
Source§impl<'r> Display for ByteReader<'r>
impl<'r> Display for ByteReader<'r>
Source§impl<'r> Hash for ByteReader<'r>
impl<'r> Hash for ByteReader<'r>
Source§impl<'r> Ord for ByteReader<'r>
impl<'r> Ord for ByteReader<'r>
Source§fn cmp(&self, other: &ByteReader<'r>) -> Ordering
fn cmp(&self, other: &ByteReader<'r>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'r> PartialEq for ByteReader<'r>
impl<'r> PartialEq for ByteReader<'r>
Source§impl<'r> PartialOrd for ByteReader<'r>
impl<'r> PartialOrd for ByteReader<'r>
impl<'r> Copy for ByteReader<'r>
impl<'r> Eq for ByteReader<'r>
impl<'r> StructuralPartialEq for ByteReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for ByteReader<'r>
impl<'r> RefUnwindSafe for ByteReader<'r>
impl<'r> Send for ByteReader<'r>
impl<'r> Sync for ByteReader<'r>
impl<'r> Unpin for ByteReader<'r>
impl<'r> UnwindSafe for ByteReader<'r>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)