pub struct Ref<V: ?Sized>(/* private fields */);
Expand description
Adapt an sval::Value
into a ValueRef
.
Implementations§
Trait Implementations§
Source§impl<V: Value> Value for Ref<V>
impl<V: Value> Value for Ref<V>
Source§fn stream<'sval, S: Stream<'sval> + ?Sized>(
&'sval self,
stream: &mut S,
) -> Result
fn stream<'sval, S: Stream<'sval> + ?Sized>( &'sval self, stream: &mut S, ) -> Result
Stream this value through a
Stream
.Source§fn to_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
Try convert this value into a 32bit binary floating point number.
impl<V: Copy + ?Sized> Copy for Ref<V>
Auto Trait Implementations§
impl<V> Freeze for Ref<V>
impl<V> RefUnwindSafe for Ref<V>where
V: RefUnwindSafe + ?Sized,
impl<V> Send for Ref<V>
impl<V> Sync for Ref<V>
impl<V> Unpin for Ref<V>
impl<V> UnwindSafe for Ref<V>where
V: UnwindSafe + ?Sized,
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