pub struct NullableString(pub Option<String>);Expand description
Represents a sequence of characters or null.
For non-null strings, first the length N is given as an INT16. Then N bytes follow which are the UTF-8 encoding of the character sequence. A null value is encoded with length of -1 and there are no following bytes.
Tuple Fields§
§0: Option<String>Trait Implementations§
Source§impl Clone for NullableString
impl Clone for NullableString
Source§fn clone(&self) -> NullableString
fn clone(&self) -> NullableString
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 NullableString
impl Debug for NullableString
Source§impl Default for NullableString
impl Default for NullableString
Source§fn default() -> NullableString
fn default() -> NullableString
Returns the “default value” for a type. Read more
Source§impl Hash for NullableString
impl Hash for NullableString
Source§impl Ord for NullableString
impl Ord for NullableString
Source§fn cmp(&self, other: &NullableString) -> Ordering
fn cmp(&self, other: &NullableString) -> 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 NullableString
impl PartialEq for NullableString
Source§impl PartialOrd for NullableString
impl PartialOrd for NullableString
Source§impl<R> ReadType<R> for NullableStringwhere
R: Read,
impl<R> ReadType<R> for NullableStringwhere
R: Read,
Source§impl<W> WriteType<W> for NullableStringwhere
W: Write,
impl<W> WriteType<W> for NullableStringwhere
W: Write,
impl Eq for NullableString
impl StructuralPartialEq for NullableString
Auto Trait Implementations§
impl Freeze for NullableString
impl RefUnwindSafe for NullableString
impl Send for NullableString
impl Sync for NullableString
impl Unpin for NullableString
impl UnwindSafe for NullableString
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