pub struct UnknownStruct<const N: usize>(/* private fields */);Expand description
An opaque, still-unreversed native structure. This is equivalent to a u8
array, but its use indicates that we know a structure exists and we know its
size but we don’t know its purpose or anything else about it.
Don’t use this for values that you don’t believe to be distinct structs at
the C++ level; just use [u8; N] directly instead. You can tell when
reversing because structs will often be passed into functions using base
addresses within their parent structs.
Auto Trait Implementations§
impl<const N: usize> Freeze for UnknownStruct<N>
impl<const N: usize> RefUnwindSafe for UnknownStruct<N>
impl<const N: usize> Send for UnknownStruct<N>
impl<const N: usize> Sync for UnknownStruct<N>
impl<const N: usize> Unpin for UnknownStruct<N>
impl<const N: usize> UnsafeUnpin for UnknownStruct<N>
impl<const N: usize> UnwindSafe for UnknownStruct<N>
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