pub enum Handoff {
Array,
Value,
}Expand description
How a value reaches a nested codec.
The one place the targets genuinely disagree, and the reason it is an
enum rather than a bool: C hands an aggregate’s address and an
array’s first element, which are written differently and mean the
same thing, while a target with references hands the value either
way. A caller says which of the two situations it is in and the
backend says how that is spelled.
Variants§
Trait Implementations§
impl Copy for Handoff
impl Eq for Handoff
impl StructuralPartialEq for Handoff
Auto Trait Implementations§
impl Freeze for Handoff
impl RefUnwindSafe for Handoff
impl Send for Handoff
impl Sync for Handoff
impl Unpin for Handoff
impl UnsafeUnpin for Handoff
impl UnwindSafe for Handoff
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