Struct value_bag::OwnedValueBag
source · pub struct OwnedValueBag { /* private fields */ }Expand description
Implementations§
source§impl OwnedValueBag
impl OwnedValueBag
sourcepub const fn by_ref<'v>(&'v self) -> ValueBag<'v>
pub const fn by_ref<'v>(&'v self) -> ValueBag<'v>
Get a regular ValueBag from this type.
Once a ValueBag has been buffered, it will behave
slightly differently when converted back:
fmt::Debugwon’t use formatting flags.serde::Serializewill use the text-based representation.- The original type will change, so downcasting won’t work.
Trait Implementations§
source§impl Clone for OwnedValueBag
impl Clone for OwnedValueBag
source§fn clone(&self) -> OwnedValueBag
fn clone(&self) -> OwnedValueBag
Returns a copy 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 OwnedValueBag
impl Debug for OwnedValueBag
source§impl Display for OwnedValueBag
impl Display for OwnedValueBag
source§impl<'v> From<&'v OwnedValueBag> for ValueBag<'v>
impl<'v> From<&'v OwnedValueBag> for ValueBag<'v>
source§fn from(v: &'v OwnedValueBag) -> ValueBag<'v>
fn from(v: &'v OwnedValueBag) -> ValueBag<'v>
Converts to this type from the input type.
source§impl Serialize for OwnedValueBag
impl Serialize for OwnedValueBag
Auto Trait Implementations§
impl RefUnwindSafe for OwnedValueBag
impl Send for OwnedValueBag
impl Sync for OwnedValueBag
impl Unpin for OwnedValueBag
impl UnwindSafe for OwnedValueBag
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