Skip to main content

Zero

Struct Zero 

Source
pub struct Zero {}

Implementations§

Source§

impl Zero

Source

pub fn new() -> Zero

Trait Implementations§

Source§

impl Read for Zero

Source§

fn read<'a>( &mut self, buf: &mut [u8], _exe_ctx: &mut ExecutionContext<'a>, ) -> IOResult<'a, usize>

Source§

fn read_uninterrupted<'a>( &mut self, buf: &mut [u8], exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, usize>

Source§

fn read_exact<'a>( &mut self, buf: &mut [u8], exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, ()>

Source§

fn read_u8<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u8>

Source§

fn read_u16be<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u16>

Source§

fn read_u32be<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u32>

Source§

fn read_u64be<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u64>

Source§

fn read_u16le<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u16>

Source§

fn read_u32le<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u32>

Source§

fn read_u64le<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u64>

Source§

fn read_i8<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, i8>

Source§

fn read_i16be<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, i16>

Source§

fn read_i32be<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, i32>

Source§

fn read_i64be<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u64>

Source§

fn read_i16le<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, i16>

Source§

fn read_i32le<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, i32>

Source§

fn read_i64le<'a>( &mut self, exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, u64>

Source§

impl Seek for Zero

Source§

fn seek<'a>( &mut self, _target: SeekFrom, _exe_ctx: &mut ExecutionContext<'a>, ) -> IOResult<'a, u64>

Source§

impl Truncate for Zero

Source§

fn truncate<'a>( &mut self, _size: u64, _exe_ctx: &mut ExecutionContext<'a>, ) -> IOResult<'a, ()>

Source§

impl Write for Zero

Source§

fn write<'a>( &mut self, _buf: &[u8], _exe_ctx: &mut ExecutionContext<'a>, ) -> IOResult<'a, usize>

Source§

fn write_all<'a>( &mut self, buf: &[u8], exe_ctx: &mut ExecutionContext<'a>, ) -> IOPartialResult<'a, ()>

Auto Trait Implementations§

§

impl Freeze for Zero

§

impl RefUnwindSafe for Zero

§

impl Send for Zero

§

impl Sync for Zero

§

impl Unpin for Zero

§

impl UnsafeUnpin for Zero

§

impl UnwindSafe for Zero

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.