#[repr(C)]pub struct raw_data_t {
pub raw: *const c_void,
pub raw_len: u32,
pub raw_type: u16,
}
Expand description
C-struct for raw data, just a data view from native library.
It can be copy/cloned, but should not use it outbound away a offset lifetime.
Fields§
§raw: *const c_void
§raw_len: u32
§raw_type: u16
Implementations§
Trait Implementations§
Source§impl Clone for raw_data_t
impl Clone for raw_data_t
Source§fn clone(&self) -> raw_data_t
fn clone(&self) -> raw_data_t
Returns a duplicate 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 Debug for raw_data_t
impl Debug for raw_data_t
Source§impl From<&raw_data_t> for RawData
impl From<&raw_data_t> for RawData
Source§fn from(raw: &raw_data_t) -> Self
fn from(raw: &raw_data_t) -> Self
Converts to this type from the input type.
impl Send for raw_data_t
Auto Trait Implementations§
impl Freeze for raw_data_t
impl RefUnwindSafe for raw_data_t
impl !Sync for raw_data_t
impl Unpin for raw_data_t
impl UnwindSafe for raw_data_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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more