pub struct Value<const INDEX: usize> { /* private fields */ }Expand description
A generic Tool value admitted through a validated concrete call codec. The index distinguishes independent native type parameters at the automatic bridge.
Implementations§
Trait Implementations§
impl<const INDEX: usize> Eq for Value<INDEX>
Source§impl<const INDEX: usize> FlowType for Value<INDEX>
impl<const INDEX: usize> FlowType for Value<INDEX>
Source§fn decode_context(
codec: &ContextCodec,
value: &Json,
) -> Result<Self, DecodeError>
fn decode_context( codec: &ContextCodec, value: &Json, ) -> Result<Self, DecodeError>
Reads a value using the compiler-validated concrete call type.
Source§fn encode_context(&self, codec: &ContextCodec) -> Result<Json, DecodeError>
fn encode_context(&self, codec: &ContextCodec) -> Result<Json, DecodeError>
Writes a value using the compiler-validated concrete call type.
Source§fn encode_field(&self) -> Option<Json>
fn encode_field(&self) -> Option<Json>
Encodes a named field, including the special Option-field representation.
Source§fn decode_field(value: Option<&Json>) -> Result<Self, DecodeError>
fn decode_field(value: Option<&Json>) -> Result<Self, DecodeError>
Decodes a named field; Option aliases retain omission semantics.
Source§impl<const INDEX: usize> Ord for Value<INDEX>
impl<const INDEX: usize> Ord for Value<INDEX>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<const INDEX: usize> PartialOrd for Value<INDEX>
impl<const INDEX: usize> PartialOrd for Value<INDEX>
Auto Trait Implementations§
impl<const INDEX: usize> Freeze for Value<INDEX>
impl<const INDEX: usize> RefUnwindSafe for Value<INDEX>
impl<const INDEX: usize> Send for Value<INDEX>
impl<const INDEX: usize> Sync for Value<INDEX>
impl<const INDEX: usize> Unpin for Value<INDEX>
impl<const INDEX: usize> UnsafeUnpin for Value<INDEX>
impl<const INDEX: usize> UnwindSafe for Value<INDEX>
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