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
sourceimpl Clone for NullTerminated
impl Clone for NullTerminated
sourcefn clone(&self) -> NullTerminated
fn clone(&self) -> NullTerminated
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NullTerminated
impl Debug for NullTerminated
impl Copy for NullTerminated
Auto Trait Implementations
impl RefUnwindSafe for NullTerminated
impl Send for NullTerminated
impl Sync for NullTerminated
impl Unpin for NullTerminated
impl UnwindSafe for NullTerminated
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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