pub struct OpaqueSerialize {
pub ptr: PtrConst,
pub shape: &'static Shape,
}Available on crate feature
alloc only.Expand description
Erased serialization inputs returned by an opaque adapter.
Fields§
§ptr: PtrConstPointer to the value to serialize.
shape: &'static ShapeShape describing ptr.
Implementations§
Source§impl OpaqueSerialize
impl OpaqueSerialize
Sourcepub const fn mapped(ptr: PtrConst, shape: &'static Shape) -> OpaqueSerialize
pub const fn mapped(ptr: PtrConst, shape: &'static Shape) -> OpaqueSerialize
Constructs a mapped opaque serialization input from a typed pointer + shape.
Trait Implementations§
Source§impl Clone for OpaqueSerialize
impl Clone for OpaqueSerialize
Source§fn clone(&self) -> OpaqueSerialize
fn clone(&self) -> OpaqueSerialize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpaqueSerialize
impl Debug for OpaqueSerialize
impl Copy for OpaqueSerialize
Auto Trait Implementations§
impl Freeze for OpaqueSerialize
impl RefUnwindSafe for OpaqueSerialize
impl !Send for OpaqueSerialize
impl !Sync for OpaqueSerialize
impl Unpin for OpaqueSerialize
impl UnsafeUnpin for OpaqueSerialize
impl UnwindSafe for OpaqueSerialize
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