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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)