pub enum ValueOrRef {
Value(String),
Ref(Ref),
}Variants§
Trait Implementations§
Source§impl Clone for ValueOrRef
impl Clone for ValueOrRef
Source§fn clone(&self) -> ValueOrRef
fn clone(&self) -> ValueOrRef
Returns a duplicate 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 ValueOrRef
impl Debug for ValueOrRef
Source§impl Default for ValueOrRef
impl Default for ValueOrRef
Source§impl From<Ref> for ValueOrRef
impl From<Ref> for ValueOrRef
Source§impl<T> From<T> for ValueOrRef
impl<T> From<T> for ValueOrRef
Auto Trait Implementations§
impl Freeze for ValueOrRef
impl RefUnwindSafe for ValueOrRef
impl Send for ValueOrRef
impl Sync for ValueOrRef
impl Unpin for ValueOrRef
impl UnwindSafe for ValueOrRef
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