Struct cbor_diag::ByteString
source · pub struct ByteString {
pub data: Vec<u8>,
pub bitwidth: IntegerWidth,
}
Expand description
A string of raw bytes with no direct attached meaning.
May be assigned a meaning by being enclosed in a semantic tag.
Fields§
§data: Vec<u8>
The raw binary data in this byte string
bitwidth: IntegerWidth
The bitwidth used for encoding the length
Trait Implementations§
source§impl Clone for ByteString
impl Clone for ByteString
source§fn clone(&self) -> ByteString
fn clone(&self) -> ByteString
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 ByteString
impl Debug for ByteString
source§impl PartialEq<ByteString> for ByteString
impl PartialEq<ByteString> for ByteString
source§fn eq(&self, other: &ByteString) -> bool
fn eq(&self, other: &ByteString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ByteString
impl StructuralEq for ByteString
impl StructuralPartialEq for ByteString
Auto Trait Implementations§
impl RefUnwindSafe for ByteString
impl Send for ByteString
impl Sync for ByteString
impl Unpin for ByteString
impl UnwindSafe for ByteString
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