Enum libafl_bolts::ownedref::OwnedRefMut
source · pub enum OwnedRefMut<'a, T: 'a + ?Sized> {
Ref(&'a mut T),
Owned(Box<T>),
}
Expand description
Wrap a mutable reference and convert to a Box on serialize
Variants§
Trait Implementations§
source§impl<'a, T: Sized> AsMut<T> for OwnedRefMut<'a, T>
impl<'a, T: Sized> AsMut<T> for OwnedRefMut<'a, T>
source§impl<'a, T: Sized> AsRef<T> for OwnedRefMut<'a, T>
impl<'a, T: Sized> AsRef<T> for OwnedRefMut<'a, T>
source§impl<'de, 'a, T: 'a + ?Sized> Deserialize<'de> for OwnedRefMut<'a, T>where
Box<T>: Deserialize<'de>,
impl<'de, 'a, T: 'a + ?Sized> Deserialize<'de> for OwnedRefMut<'a, T>where
Box<T>: Deserialize<'de>,
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
source§impl<'a, T> IntoOwned for OwnedRefMut<'a, T>
impl<'a, T> IntoOwned for OwnedRefMut<'a, T>
Auto Trait Implementations§
impl<'a, T: ?Sized> RefUnwindSafe for OwnedRefMut<'a, T>where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for OwnedRefMut<'a, T>where
T: Send,
impl<'a, T: ?Sized> Sync for OwnedRefMut<'a, T>where
T: Sync,
impl<'a, T: ?Sized> Unpin for OwnedRefMut<'a, T>
impl<'a, T> !UnwindSafe for OwnedRefMut<'a, T>
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.