Struct sbp::sbp_string::NullTerminated
source · pub struct NullTerminated;
Expand description
Handles encoding and decoding of NULL terminated strings.
In SBP a NULL terminated string has the same definition as string in the C language. On the wire it is a sequence of characters with a NULL character to indicate the end of the string.
For example the string “text” would be represented on the wire as
text\0
Trait Implementations§
source§impl Clone for NullTerminated
impl Clone for NullTerminated
source§fn clone(&self) -> NullTerminated
fn clone(&self) -> NullTerminated
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 Debug for NullTerminated
impl Debug for NullTerminated
source§impl PartialEq for NullTerminated
impl PartialEq for NullTerminated
source§fn eq(&self, other: &NullTerminated) -> bool
fn eq(&self, other: &NullTerminated) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NullTerminated
impl Eq for NullTerminated
impl StructuralPartialEq for NullTerminated
Auto Trait Implementations§
impl Freeze for NullTerminated
impl RefUnwindSafe for NullTerminated
impl Send for NullTerminated
impl Sync for NullTerminated
impl Unpin for NullTerminated
impl UnwindSafe for NullTerminated
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