pub struct NakedValue<'a>(pub &'a Value);
Expand description
A value reference that formats without type tags
Tuple Fields§
§0: &'a Value
Methods from Deref<Target = Value>§
pub fn to_string_naked(&self) -> String
pub fn fmt_naked(&self, f: &mut Formatter<'_>) -> Result
pub fn fmt_notyp(&self, f: &mut Formatter<'_>) -> Result
pub fn fmt_ext( &self, f: &mut Formatter<'_>, esc: &Escape, types: bool, ) -> Result
pub fn approx_eq(&self, v: &Self) -> bool
pub fn discriminant(&self) -> u32
pub fn is_copy(&self) -> bool
Trait Implementations§
Source§impl<'a> Deref for NakedValue<'a>
impl<'a> Deref for NakedValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for NakedValue<'a>
impl<'a> RefUnwindSafe for NakedValue<'a>
impl<'a> Send for NakedValue<'a>
impl<'a> Sync for NakedValue<'a>
impl<'a> Unpin for NakedValue<'a>
impl<'a> UnwindSafe for NakedValue<'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
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more