pub struct PreparedSegment<A, R>{ /* private fields */ }Expand description
Owns a frozen raw body with exact canonical argument/result witnesses.
Calls borrow arguments, clone only emitted reads, and return independent owners.
Implementations§
Source§impl<A, R> PreparedSegment<A, R>
impl<A, R> PreparedSegment<A, R>
Sourcepub fn call(
&mut self,
args: &<A as ValueRepr>::Value,
) -> Result<<R as ValueRepr>::Value, Error>
pub fn call( &mut self, args: &<A as ValueRepr>::Value, ) -> Result<<R as ValueRepr>::Value, Error>
Executes without shape comparisons, checked conversions, or Any downcasts.
- Postcondition: The input remains borrowed and every returned owner is independent.
§Errors
Propagates the original operation error and its context after frame cleanup.
- Complexity: O(a) pointer setup for a arguments plus body/clone costs.
§Examples
See the module example.
Auto Trait Implementations§
impl<A, R> !Send for PreparedSegment<A, R>
impl<A, R> !Sync for PreparedSegment<A, R>
impl<A, R> Freeze for PreparedSegment<A, R>
impl<A, R> RefUnwindSafe for PreparedSegment<A, R>
impl<A, R> Unpin for PreparedSegment<A, R>
impl<A, R> UnsafeUnpin for PreparedSegment<A, R>
impl<A, R> UnwindSafe for PreparedSegment<A, R>
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