Enum libafl_bolts::ownedref::OwnedMutPtr
source · pub enum OwnedMutPtr<T: Sized> {
Ptr(*mut T),
Owned(Box<T>),
}
Expand description
Wrap a C-style mutable pointer and convert to a Box on serialize
Variants§
Trait Implementations§
source§impl<T: Sized> AsMut<T> for OwnedMutPtr<T>
impl<T: Sized> AsMut<T> for OwnedMutPtr<T>
source§impl<T: Sized> AsRef<T> for OwnedMutPtr<T>
impl<T: Sized> AsRef<T> for OwnedMutPtr<T>
source§impl<T: Clone + Sized> Clone for OwnedMutPtr<T>
impl<T: Clone + Sized> Clone for OwnedMutPtr<T>
source§fn clone(&self) -> OwnedMutPtr<T>
fn clone(&self) -> OwnedMutPtr<T>
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<'de, T: Sized + DeserializeOwned> Deserialize<'de> for OwnedMutPtr<T>where
Vec<T>: Deserialize<'de>,
impl<'de, T: Sized + DeserializeOwned> Deserialize<'de> for OwnedMutPtr<T>where
Vec<T>: Deserialize<'de>,
source§fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(de: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> IntoOwned for OwnedMutPtr<T>
impl<T> IntoOwned for OwnedMutPtr<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OwnedMutPtr<T>where
T: RefUnwindSafe,
impl<T> !Send for OwnedMutPtr<T>
impl<T> !Sync for OwnedMutPtr<T>
impl<T> Unpin for OwnedMutPtr<T>
impl<T> UnwindSafe for OwnedMutPtr<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.