pub struct EmittedField {
pub name: String,
pub offset: u32,
pub ty: EmittedFieldType,
}Expand description
One declared #main parameter (or value field on the return
schema), in declaration order. Tells the build.rs binding generator
what Rust type to expose for each slot and at what byte offset the
buffer-protocol arena writer / reader should access it.
Fields§
§name: StringField name as declared in source.
offset: u32Pre-computed byte offset of the slot inside its enclosing fixed area (main_params record for args, return record for the return slot).
ty: EmittedFieldTypeErased canonical type tag. Build.rs maps each to the matching Rust type for the binding signature.
Trait Implementations§
Source§impl Clone for EmittedField
impl Clone for EmittedField
Source§fn clone(&self) -> EmittedField
fn clone(&self) -> EmittedField
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 moreAuto Trait Implementations§
impl Freeze for EmittedField
impl RefUnwindSafe for EmittedField
impl Send for EmittedField
impl Sync for EmittedField
impl Unpin for EmittedField
impl UnsafeUnpin for EmittedField
impl UnwindSafe for EmittedField
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