Struct allsorts::post::PascalString
source · [−]pub struct PascalString<'a> {
pub bytes: &'a [u8],
}
Fields
bytes: &'a [u8]
Trait Implementations
sourceimpl<'a> Clone for PascalString<'a>
impl<'a> Clone for PascalString<'a>
sourcefn clone(&self) -> PascalString<'a>
fn clone(&self) -> PascalString<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> WriteBinary<&PascalString<'a>> for PascalString<'a>
impl<'a> WriteBinary<&PascalString<'a>> for PascalString<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
string: &PascalString<'a>
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
string: &PascalString<'a>
) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.Auto Trait Implementations
impl<'a> RefUnwindSafe for PascalString<'a>
impl<'a> Send for PascalString<'a>
impl<'a> Sync for PascalString<'a>
impl<'a> Unpin for PascalString<'a>
impl<'a> UnwindSafe for PascalString<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep
.sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
Write the binary representation of Self to
ctxt
.