pub struct Input<'call, C>where
C: HostSchema,{ /* private fields */ }Expand description
Read-only access to an invocation’s deterministic input.
The invocation lifetime prevents a borrowed input projection from escaping:
ⓘ
use rustia::{HostSchema, Input};
fn leak<C: HostSchema>(input: Input<'_, C>) -> &'static C::Input {
input.get()
}Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'call, C> Freeze for Input<'call, C>
impl<'call, C> RefUnwindSafe for Input<'call, C>
impl<'call, C> Send for Input<'call, C>
impl<'call, C> Sync for Input<'call, C>
impl<'call, C> Unpin for Input<'call, C>
impl<'call, C> UnsafeUnpin for Input<'call, C>
impl<'call, C> UnwindSafe for Input<'call, C>
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