#[repr(C)]pub struct PredsyncValue {
pub kind: PredsyncValueKind,
pub element: PredsyncScalarKind,
pub scalar: u64,
pub ptr: *const c_void,
pub len: usize,
pub cap: usize,
}Expand description
One value crossing the C boundary.
Fields§
§kind: PredsyncValueKindWhich representation is present.
element: PredsyncScalarKindThe scalar or list-element type.
scalar: u64Slot bits for a scalar value.
ptr: *const c_voidBorrowed bytes for strings, or slot bits for lists.
len: usizeByte count for strings, element count for lists.
cap: usizeCaller-provided capacity in bytes.
Trait Implementations§
Source§impl Clone for PredsyncValue
impl Clone for PredsyncValue
impl Copy for PredsyncValue
Auto Trait Implementations§
impl !Send for PredsyncValue
impl !Sync for PredsyncValue
impl Freeze for PredsyncValue
impl RefUnwindSafe for PredsyncValue
impl Unpin for PredsyncValue
impl UnsafeUnpin for PredsyncValue
impl UnwindSafe for PredsyncValue
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