pub struct CompactNullableStringRef<'a>(pub Option<&'a str>);Expand description
Same as CompactNullableString but contains referenced data.
This only supports writing.
Tuple Fields§
§0: Option<&'a str>Trait Implementations§
Source§impl<'a> Debug for CompactNullableStringRef<'a>
impl<'a> Debug for CompactNullableStringRef<'a>
Source§impl<'a> Hash for CompactNullableStringRef<'a>
impl<'a> Hash for CompactNullableStringRef<'a>
Source§impl<'a> Ord for CompactNullableStringRef<'a>
impl<'a> Ord for CompactNullableStringRef<'a>
Source§fn cmp(&self, other: &CompactNullableStringRef<'a>) -> Ordering
fn cmp(&self, other: &CompactNullableStringRef<'a>) -> 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<'a> PartialEq for CompactNullableStringRef<'a>
impl<'a> PartialEq for CompactNullableStringRef<'a>
Source§fn eq(&self, other: &CompactNullableStringRef<'a>) -> bool
fn eq(&self, other: &CompactNullableStringRef<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PartialOrd for CompactNullableStringRef<'a>
impl<'a> PartialOrd for CompactNullableStringRef<'a>
Source§impl<'a, W> WriteType<W> for CompactNullableStringRef<'a>where
W: Write,
impl<'a, W> WriteType<W> for CompactNullableStringRef<'a>where
W: Write,
impl<'a> Eq for CompactNullableStringRef<'a>
impl<'a> StructuralPartialEq for CompactNullableStringRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for CompactNullableStringRef<'a>
impl<'a> RefUnwindSafe for CompactNullableStringRef<'a>
impl<'a> Send for CompactNullableStringRef<'a>
impl<'a> Sync for CompactNullableStringRef<'a>
impl<'a> Unpin for CompactNullableStringRef<'a>
impl<'a> UnwindSafe for CompactNullableStringRef<'a>
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