Enum libafl_bolts::ownedref::OwnedRef
source · pub enum OwnedRef<'a, T>where
T: 'a + ?Sized,{
Ref(&'a T),
Owned(Box<T>),
}
Expand description
Wrap a reference and convert to a Box
on serialize
Variants§
Trait Implementations§
source§impl<'de, 'a, T> Deserialize<'de> for OwnedRef<'a, T>
impl<'de, 'a, T> Deserialize<'de> for OwnedRef<'a, T>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a, T: ?Sized> RefUnwindSafe for OwnedRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for OwnedRef<'a, T>
impl<'a, T: ?Sized> Sync for OwnedRef<'a, T>where
T: Sync,
impl<'a, T: ?Sized> Unpin for OwnedRef<'a, T>
impl<'a, T: ?Sized> UnwindSafe for OwnedRef<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting
TupleList
, of an Prepend::prepend()
call,
including the prepended entry.source§fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.