pub struct DataWrite<'d> { /* private fields */ }
Implementations§
Source§impl<'d> DataWrite<'d>
impl<'d> DataWrite<'d>
pub fn write_bool(&mut self, val: bool) -> Result<(), WriteError>
pub fn write_u8(&mut self, val: u8) -> Result<(), WriteError>
pub fn write_i8(&mut self, val: i8) -> Result<(), WriteError>
pub fn write_u16(&mut self, val: u16) -> Result<(), WriteError>
pub fn write_i16(&mut self, val: i16) -> Result<(), WriteError>
pub fn write_u32(&mut self, val: u32) -> Result<(), WriteError>
pub fn write_i32(&mut self, val: i32) -> Result<(), WriteError>
pub fn write_f32(&mut self, val: f32) -> Result<(), WriteError>
pub fn write_u64(&mut self, val: u64) -> Result<(), WriteError>
pub fn write_i64(&mut self, val: i64) -> Result<(), WriteError>
pub fn write_f64(&mut self, val: f64) -> Result<(), WriteError>
pub fn write_utf(&mut self, val: &str) -> Result<(), WriteError>
pub fn write_bytes(&mut self, val: &[u8]) -> Result<(), WriteError>
pub const fn is_owned(&self) -> bool
pub fn get_written(&self) -> &[u8] ⓘ
pub fn inflate(self, to: &mut DataWrite<'_>) -> Result<(), CompressError>
Trait Implementations§
Auto Trait Implementations§
impl<'d> Freeze for DataWrite<'d>
impl<'d> RefUnwindSafe for DataWrite<'d>
impl<'d> Send for DataWrite<'d>
impl<'d> Sync for DataWrite<'d>
impl<'d> Unpin for DataWrite<'d>
impl<'d> !UnwindSafe for DataWrite<'d>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more