pub struct ResultPtrStr {
pub tag: u8,
pub _pad: [u8; 7],
/* private fields */
}Expand description
Result<*const T, *const StringObj> — Ok is a heap pointer, Err is string pointer.
§Memory layout (16 bytes)
Offset Size Field
------ ---- -----
0 1 tag (0=Ok, 1=Err)
1 7 _pad
8 8 payload (*const T or *const StringObj)Fields§
§tag: u8§_pad: [u8; 7]Implementations§
Auto Trait Implementations§
impl Freeze for ResultPtrStr
impl RefUnwindSafe for ResultPtrStr
impl Send for ResultPtrStr
impl Sync for ResultPtrStr
impl Unpin for ResultPtrStr
impl UnsafeUnpin for ResultPtrStr
impl UnwindSafe for ResultPtrStr
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