pub struct Encoded(/* private fields */);Expand description
A value of a type the call fixes, held as its bytes: a generic Tool’s
type parameter, as the generated adapter instantiates it, or a std
declaration a Rust type carries without modelling it, such as
code.Bundle.
It is opaque: a Tool passes it along, stores it and answers with it, and cannot look inside, as a Flow function cannot look inside a value of a type it is generic over. It is read once at the type its position has, and written only where its bytes are a value of the type written.
Two are equal when their bytes are, which a value’s bytes are of it
alone. Their order is a byte order and is never Flow’s order of the
values; it exists so that a BTreeSet or BTreeMap can hold them. The
writer sorts a set’s elements and a dictionary’s keys by Flow’s order,
whatever order Rust keeps them in.
Implementations§
Trait Implementations§
impl Eq for Encoded
Source§impl Ord for Encoded
impl Ord for Encoded
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Encoded
impl PartialOrd for Encoded
Source§impl Shaped for Encoded
Its form is never read: #[tool] declares a type parameter by its
place-holder, flow_abi::wire::Param, and the derive of a std
declaration writes the declaration’s form.
impl Shaped for Encoded
Its form is never read: #[tool] declares a type parameter by its
place-holder, flow_abi::wire::Param, and the derive of a std
declaration writes the declaration’s form.