pub struct Input<'a>(/* private fields */);
Implementations§
Source§impl<'a> Input<'a>
impl<'a> Input<'a>
pub fn new(input: &[u8]) -> Input<'_>
pub fn remaining(&self) -> usize
pub fn read_slice(&mut self, count: usize) -> &'a [u8] ⓘ
pub fn try_read_slice(&mut self, count: usize) -> Result<&'a [u8], InputError>
pub fn read_u8(&mut self) -> u8
pub fn try_read_u8(&mut self) -> Result<u8, InputError>
pub fn read_i8(&mut self) -> i8
pub fn try_read_i8(&mut self) -> Result<i8, InputError>
pub fn read_u16<BO: ByteOrder>(&mut self) -> u16
pub fn try_read_u16<BO: ByteOrder>(&mut self) -> Result<u16, InputError>
pub fn read_u16_be(&mut self) -> u16
pub fn try_read_u16_be(&mut self) -> Result<u16, InputError>
pub fn read_u16_le(&mut self) -> u16
pub fn try_read_u16_le(&mut self) -> Result<u16, InputError>
pub fn read_i16<BO: ByteOrder>(&mut self) -> i16
pub fn try_read_i16<BO: ByteOrder>(&mut self) -> Result<i16, InputError>
pub fn read_i16_be(&mut self) -> i16
pub fn try_read_i16_be(&mut self) -> Result<i16, InputError>
pub fn read_i16_le(&mut self) -> i16
pub fn try_read_i16_le(&mut self) -> Result<i16, InputError>
pub fn read_u32<BO: ByteOrder>(&mut self) -> u32
pub fn try_read_u32<BO: ByteOrder>(&mut self) -> Result<u32, InputError>
pub fn read_u32_be(&mut self) -> u32
pub fn try_read_u32_be(&mut self) -> Result<u32, InputError>
pub fn read_u32_le(&mut self) -> u32
pub fn try_read_u32_le(&mut self) -> Result<u32, InputError>
pub fn read_i32<BO: ByteOrder>(&mut self) -> i32
pub fn try_read_i32<BO: ByteOrder>(&mut self) -> Result<i32, InputError>
pub fn read_i32_be(&mut self) -> i32
pub fn try_read_i32_be(&mut self) -> Result<i32, InputError>
pub fn read_i32_le(&mut self) -> i32
pub fn try_read_i32_le(&mut self) -> Result<i32, InputError>
pub fn read_u64<BO: ByteOrder>(&mut self) -> u64
pub fn try_read_u64<BO: ByteOrder>(&mut self) -> Result<u64, InputError>
pub fn read_u64_be(&mut self) -> u64
pub fn try_read_u64_be(&mut self) -> Result<u64, InputError>
pub fn read_u64_le(&mut self) -> u64
pub fn try_read_u64_le(&mut self) -> Result<u64, InputError>
pub fn read_i64<BO: ByteOrder>(&mut self) -> i64
pub fn try_read_i64<BO: ByteOrder>(&mut self) -> Result<i64, InputError>
pub fn read_i64_be(&mut self) -> i64
pub fn try_read_i64_be(&mut self) -> Result<i64, InputError>
pub fn read_i64_le(&mut self) -> i64
pub fn try_read_i64_le(&mut self) -> Result<i64, InputError>
pub fn read_f32<BO: ByteOrder>(&mut self) -> f32
pub fn try_read_f32<BO: ByteOrder>(&mut self) -> Result<f32, InputError>
pub fn read_f32_be(&mut self) -> f32
pub fn try_read_f32_be(&mut self) -> Result<f32, InputError>
pub fn read_f32_le(&mut self) -> f32
pub fn try_read_f32_le(&mut self) -> Result<f32, InputError>
pub fn read_f64<BO: ByteOrder>(&mut self) -> f64
pub fn try_read_f64<BO: ByteOrder>(&mut self) -> Result<f64, InputError>
pub fn read_f64_be(&mut self) -> f64
pub fn try_read_f64_be(&mut self) -> Result<f64, InputError>
pub fn read_f64_le(&mut self) -> f64
pub fn try_read_f64_le(&mut self) -> Result<f64, InputError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Input<'a>
impl<'a> RefUnwindSafe for Input<'a>
impl<'a> Send for Input<'a>
impl<'a> Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> UnwindSafe for Input<'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