pub struct EncodedString { /* private fields */ }Expand description
String representation of serialized data.
This type represents data that has been serialized into a string format, along with information about which serialization format was used.
Implementations§
Source§impl EncodedString
impl EncodedString
Sourcepub const fn new(encoding: Encoding, string: String) -> Self
pub const fn new(encoding: Encoding, string: String) -> Self
Creates a new SerialString instance.
§Arguments
serialise_type- The format used to serialize the datastring- The serialized string representation
Sourcepub const fn get_encoding(&self) -> Encoding
pub const fn get_encoding(&self) -> Encoding
Sourcepub const fn get_string(&self) -> &String
pub const fn get_string(&self) -> &String
Trait Implementations§
Source§impl Clone for EncodedString
impl Clone for EncodedString
Source§fn clone(&self) -> EncodedString
fn clone(&self) -> EncodedString
Returns a duplicate 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 EncodedString
impl Debug for EncodedString
Source§impl Display for EncodedString
impl Display for EncodedString
Source§impl Ord for EncodedString
impl Ord for EncodedString
Source§fn cmp(&self, other: &EncodedString) -> Ordering
fn cmp(&self, other: &EncodedString) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EncodedString
impl PartialEq for EncodedString
Source§impl PartialOrd for EncodedString
impl PartialOrd for EncodedString
impl Eq for EncodedString
impl StructuralPartialEq for EncodedString
Auto Trait Implementations§
impl Freeze for EncodedString
impl RefUnwindSafe for EncodedString
impl Send for EncodedString
impl Sync for EncodedString
impl Unpin for EncodedString
impl UnsafeUnpin for EncodedString
impl UnwindSafe for EncodedString
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