Struct cbor_diag::TextString
source · pub struct TextString {
pub data: String,
pub bitwidth: IntegerWidth,
}
Expand description
A UTF-8 encoded text string.
May be assigned further meaning by being enclosed in a semantic tag.
Fields§
§data: String
The textual data in this text string
bitwidth: IntegerWidth
The bitwidth used for encoding the length
Trait Implementations§
source§impl Clone for TextString
impl Clone for TextString
source§fn clone(&self) -> TextString
fn clone(&self) -> TextString
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 TextString
impl Debug for TextString
source§impl PartialEq<TextString> for TextString
impl PartialEq<TextString> for TextString
source§fn eq(&self, other: &TextString) -> bool
fn eq(&self, other: &TextString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TextString
impl StructuralEq for TextString
impl StructuralPartialEq for TextString
Auto Trait Implementations§
impl RefUnwindSafe for TextString
impl Send for TextString
impl Sync for TextString
impl Unpin for TextString
impl UnwindSafe for TextString
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