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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for TextString
impl PartialEq for TextString
impl Eq for TextString
impl StructuralPartialEq for TextString
Auto Trait Implementations§
impl Freeze for TextString
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